Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter notebook cannot be saved. Cell execution freezes. #1672

Closed
sataset opened this issue Jul 1, 2020 · 6 comments · May be fixed by CALISOULB/vscode-jupyter#160 or CALISOULB/vscode-jupyter#165
Closed
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@sataset
Copy link

sataset commented Jul 1, 2020

Bug: Notebook Editor, Interactive Window, Editor cells

Happened randomly twice. Same notebook, no major changes both in code and extensions. Lost hours of my work because of this.

Steps to cause the bug to occur

Unknown.

Actual behavior

Notebook cannot be saved (neither with cmd + s nor after closing. it will prompt if I want to save it but it does not work). Cell execution freezes, but other cells could be executed.

Expected behavior

Notebook saved. Cell runs normally.

Jul-01-2020 4-07-35 PM

Your Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2020.6.91350
  • VS Code version: 1.46.1
  • Setting python.jediEnabled: default
  • Setting python.languageServer: default
  • Python version: 3.6.8
  • OS: Mac
  • Virtual environment: venv

Developer Tools Console Output

Spoiler 1
 [Extension Host] Info Python Extension: 2020-07-01 15:33:45: Finished executing cell 5ee9c499-3970-4c48-a14e-1291ef760365
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:55: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (12) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:55: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (13) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:56: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (15) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:57: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (16) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:57: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (17) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:57: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (19) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:58: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (21) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:58: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (22) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:58: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (24) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:58: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (25) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:59: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (28) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:59: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (27) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:33:59: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (25) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:00: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (27) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:00: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (28) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:01: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (27) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:01: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (28) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:02: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (29) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:02: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (31) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:02: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (32) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:03: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (33) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:03: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (36) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Error Python Extension: 2020-07-01 15:34:03: stderr jediProxy Error (stderr) Traceback (most recent call last):  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch    response = self._process_request(rq)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request    return self._serialize_arguments(script, request["id"])  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments    {"id": identifier, "results": self._get_call_signatures_with_args(script)}  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args    call_signatures = script.call_signatures()  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures    return self.get_signatures(*self._pos)  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper    column, line_len, line, line_string))ValueError: `column` parameter (37) is not in a valid range (0-9) for line 4 ('import os\n').
t.log @ console.ts:137
console.ts:137 [Extension Host] Info Python Extension: 2020-07-01 15:34:20: Python Daemon (pid: 5673): write to stderr: [I 15:34:20.570 NotebookApp] Kernel interrupted: fbe56e60-854f-42fb-970e-8d2ca4acf180
console.ts:137 [Extension Host] Info Python Extension: 2020-07-01 15:34:20: Python Daemon (pid: 5673): write to stderr: 
console.ts:137 [Extension Host] Info Python Extension: 2020-07-01 15:34:21: Python Daemon (pid: 5673): write to stderr: [I 15:34:21.540 NotebookApp] Kernel interrupted: fbe56e60-854f-42fb-970e-8d2ca4acf180
console.ts:137 [Extension Host] Info Python Extension: 2020-07-01 15:34:21: Python Daemon (pid: 5673): write to stderr: 
console.ts:137 [Extension Host] Info Python Extension: 2020-07-01 15:34:23: Python Daemon (pid: 5673): write to stderr: [I 15:34:23.429 NotebookApp] Kernel interrupted: fbe56e60-854f-42fb-970e-8d2ca4acf180
console.ts:137 [Extension Host] Info Python Extension: 2020-07-01 15:34:23: Python Daemon (pid: 5673): write to stderr: 

I have extracted repeating error for you in a readable format:

Spoiler 2
[Extension Host]
Error Python Extension: 2020-07-01 15:33:55: stderr jediProxy Error (stderr) Traceback (most recent call last):
  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 661, in watch
    response = self._process_request(rq)
  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 633, in _process_request
    return self._serialize_arguments(script, request["id"])
  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 304, in _serialize_arguments
    {"id": identifier, "results": self._get_call_signatures_with_args(script)}
  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/completion.py", line 145, in _get_call_signatures_with_args
    call_signatures = script.call_signatures()
  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/__init__.py", line 522, in call_signatures
    return self.get_signatures(*self._pos)
  File "/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/jedi/api/helpers.py", line 464, in wrapper
    column, line_len, line, line_string))
ValueError: `column` parameter (12) is not in a valid range (0-9) for line 4 ('import os\n').
Spoiler 3
Extension Host
extensionHost.ts:223
follow-redirects options {
  protocol: 'https:',
  maxRedirects: 21,
  maxBodyLength: 10485760,
  path: '/vscode/ab',
  method: 'GET',
  headers: {    Accept: 'application/json, text/plain, */*',
    'X-MSEdge-Market': '',
    'X-FD-Corpnet': '',
    'X-VSCode-AppVersion': '1.46.1',
    'X-VSCode-Build': 'Visual Studio Code',
    'X-MSEdge-ClientId': 'e423f49e59735329bd9e5747c819ff0d55c608ec5902a103b2692721af686dd5',
    'X-VSCode-ExtensionName': 'ms-python.python',
    'X-VSCode-ExtensionVersion': '2020.6.91350',
    'X-VSCode-TargetPopulation': 'public',
    'User-Agent': 'axios/0.19.2'
  },
  agent: undefined,
  agents: { http: undefined, https: undefined },
  auth: undefined,
  hostname: 'default.exp-tas.com',
  port: null,
  nativeProtocols: {
    'http:': {
      _connectionListener: [Function: connectionListener],
      METHODS: [Array],
      STATUS_CODES: [Object],
      Agent: [Function],
      ClientRequest: [Function: ClientRequest],
      IncomingMessage: [Function: IncomingMessage],
      OutgoingMessage: [Function: OutgoingMessage],
      Server: [Function: Server],
      ServerResponse: [Function: ServerResponse],
      createServer: [Function: createServer],
      get: [Function],
      request: [Function],
      maxHeaderSize: 8192,
      globalAgent: [Agent]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function],
      request: [Function]
    }
  }
}
[Embedded Page] Failed to construct 'Worker': Script at 'vscode-resource://file///Volumes/BPro_HFS/GoogleDrive/code/TCDF-mod/jupyter-notebooks/editor.worker.js' cannot be accessed from origin 'null'.
ERR No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

@rchiodo
Copy link
Contributor

rchiodo commented Jul 1, 2020

Thanks for the bug.

The error in your console log should be an intellisense issue and shouldn't affect saving.

The execution getting stuck is also unrelated to the save problem. That would be a pytorch issue (and you'd have to restart the kernel as you've done instead of interrupting it).

However the save problem is rather bad. If you repro again can you include your entire console log? (Help | Toggle Developer Tools, click on the console tab, right click, save as an upload). Thanks.

@sataset
Copy link
Author

sataset commented Jul 1, 2020

@rchiodo Thank you for response.

It should not be pytorch issue because previously I have been making simple notebook with only two libs (numpy os) and lost my work with exactly same two issues.

I will save a complete log as soon as I will experience this problem again.

@rchiodo
Copy link
Contributor

rchiodo commented Jul 1, 2020

Are you saying you lose work whenever the execution hangs? That would likely be this bug here:
https://github.com/microsoft/vscode-python/issues/12514

@sataset
Copy link
Author

sataset commented Jul 1, 2020

I cannot be sure if that exact problem causes it but it seems like this. Thank you for reference. I will try to test it with autoSave feature enabled too.

@sataset
Copy link
Author

sataset commented Jul 10, 2020

Providing full log after cell freeze.

-1594377801068.log

Confirming that the save issue is not related to this problem (at least on the last version of extension).

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug temp-parking and removed temp-parking labels Nov 13, 2020
@rchiodo
Copy link
Contributor

rchiodo commented Aug 30, 2021

This was the error when saving:

workbench.desktop.main.js:sourcemap:266 [Extension Host] Error Python Extension: 2020-07-10 12:42:20: Error writing storage for /Users/arx/Library/Application Support/Code/User/globalStorage/ms-python.python/32928622.ipynb:  [EntryNotFound (FileSystemError): Unable to delete non-existing file '/Users/arx/Library/Application Support/Code/User/globalStorage/ms-python.python/32928622.ipynb'	at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:657:25)	at runMicrotasks (<anonymous>)	at processTicksAndRejections (internal/process/task_queues.js:85:5)	at async r.writeToStorage (/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/out/client/extension.js:1:476706)	at async r.clearHotExit (/Users/arx/.vscode/extensions/ms-python.python-2020.6.91350/out/client/extension.js:1:476419)] {  code: 'FileNotFound',  name: 'EntryNotFound (FileSystemError)'}

But we don't use this code anymore. Closing.

@rchiodo rchiodo closed this as completed Aug 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
4 participants