I'm encountering an issue with the Pylance extension in VS Code when working on a Python notebook. Sometimes if I add or delete a cell, the language server crashes and throws the following error:
Error: Debug Failure. False expression: Chained file path undefined doesn't match cellFilePaths [REDACTED PATH].ipynb:pylance-notebook-cell:W5sZmlsZQ==.py
at _0x225e6a ([REDACTED PATH]\server.bundle.js:1:1015920)
at [REDACTED PATH]\server.bundle.js:1:1023143
at _0x32da0b.<computed> ([REDACTED PATH]\server.bundle.js:1:1023175)
at _0x382c6c._onDidChangeNotebookDocumentAsync ([REDACTED PATH]\server.bundle.js:1:1001957)
Here's my setup:
- VS Code Version: June 2023 (version 1.80)
- Pylance Extension Version: 2023.8.21
- Operating System: Windows 10 and Linux
Steps to reproduce:
- Open a Jupyter notebook in VS Code.
- Add or delete a cell.
- The Pylance language server crashes with the above error.
Has anyone encountered this issue before? Any guidance or solutions would be greatly appreciated.
Thank you in advance!
I've already tried several troubleshooting steps:
- Reinstalled VS Code.
- Reinstalled the Pylance extension.
- Updated both VS Code and Pylance to their latest versions.
Despite these efforts, the issue persists.
My primary goal is to have Pylance running smoothly within Jupyter notebooks in VS Code. If anyone has encountered and resolved this problem, or has any suggestions, I'd be very appreciative.