microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.7k stars 770 forks source link

`inlineChat.viewInChat` command from notebook will cause pylance to crash #6454

Open amunger opened 3 days ago

amunger commented 3 days ago
  1. open a notebook and press ctrl+i to open the copilot inline chat
  2. ask for a code change and then run inlineChat.viewInChat on the response (ctrl+down) :bug: pylance crashes with bad request
2024-09-25 12:59:22.351 [error] Request textDocument/documentSymbol failed with message: Debug Failure. Notebook file should not be passed to getWorkspaceForFile: vscode-chat-code-block:/c%3A/src/test/ws1/1.ipynb?25fea62c-6c24-498f-993c-46a83def7b6f: Error: Request textDocument/documentSymbol failed with message: Debug Failure. Notebook file should not be passed to getWorkspaceForFile: vscode-chat-code-block:/c%3A/src/test/ws1/1.ipynb?25fea62c-6c24-498f-993c-46a83def7b6f
    at ae (c:\Users\aaron\.vscode-insiders\extensions\ms-python.python-2024.15.2024092501-win32-arm64\out\client\extension.js:2:2052314)
    at oe (c:\Users\aaron\.vscode-insiders\extensions\ms-python.python-2024.15.2024092501-win32-arm64\out\client\extension.js:2:2050274)
    at Immediate.<anonymous> (c:\Users\aaron\.vscode-insiders\extensions\ms-python.python-2024.15.2024092501-win32-arm64\out\client\extension.js:2:2046568)
    at processImmediate (node:internal/timers:483:21)
StellaHuang95 commented 2 days ago

Thanks for reporting, I am able to repro this.