pylance-release
pylance-release copied to clipboard
Pylance 2022.08.10 crashes with Jupytext
Environment data
- Language Server version: 2022.08.10
- OS and version: Ubuntu 20.04 LTS
- Python version (& distribution if applicable, e.g. Anaconda): 3.8.5 miniconda environment
Code Snippet
This can be replicated on an empty Python file
Repro Steps
- Install jupytext for notebooks
- Create an empty python file
foo.py
- Click "Open as a Jupyter Notebook"
Expected behavior
Pylance does not crash (Pylance does not crash on any version before 2022.08.10)
Actual behavior
Pylance crashes
Logs
Error: Debug Failure. verifyCellChainIsLinear should only be called on notebooks
at _0x3244cf (/home/tratigan/.vscode/extensions/ms-python.vscode-pylance-2022.8.10/dist/server.bundle.js:1:396859)
at _0x270681._onDidOpenNotebookDocument (/home/tratigan/.vscode/extensions/ms-python.vscode-pylance-2022.8.10/dist/server.bundle.js:1:369871)
[Error - 12:00:07 PM] The Pylance server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
Full logs: pylance_logs.txt
I tried but I got this
and I am not sure where the log is?
the failure is not on pylance, it looks like extension itself failed. is this extension require specific version of vscode or juypter extension?
I'm dealing with the same error, but I haven't installed jupytext. Whenever I open a jupyter notebook, pylance server crashes.
Suffering with the same error :(
I too. As soon as I open a jupyter notebook, the pylance server crashes. None of the suggestions in this previously resolved issue helped me.
there is a bug with untitled.ipynb. we will releasing a fix in pylance prerelease soon.
related to https://github.com/microsoft/pylance-release/issues/3126
Switching to v2022.08.12 fixes this! Thanks @heejaechang :)