Closed username-dot-com closed 2 years ago
Same issue.
VSCode version details:
Version: 1.71.0-insider
Commit: 9529e11f6481ae53bba821b05e34549491b9415e
Date: 2022-08-25T13:04:17.348Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.0-46-generic snap
Sandboxed: Yes
Python extension: v2022.12.1
Might be related to my auto-indent experiment change.
Type: Bug
Behaviour
Expected vs. Actual
Language server is expected to start, but doesn't. This issue only happens on the pre-release version. Works fine when I switch over to the stable release.
Steps to reproduce:
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` Python interpreter path: ./.venv/bin/python [ERROR 2022-7-25 17:1:0.159]: [ 'Failed to get analysis options, Class name = u, completed in 445ms, has a falsy return value, , Return Value: undefined', Error: Can not delete in empty document at R (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ] [ERROR 2022-7-25 17:1:0.165]: [ 'Starting language server, Class name = d, completed in 451ms, has a falsy return value, , Return Value: undefined', Error: Can not delete in empty document at R (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ] [ERROR 2022-7-25 17:1:0.166]: [ `Failed to start language server, Class name = d, completed in 453ms, has a falsy return value, Arg 1:>, Arg 2: {"id":"< workspace root >/.venv/bin/python","sysPrefix":"< workspace root >/.venv","envType":"Poetry","envName":".venv","envPath":"< workspace root >/.venv","path":"< workspace root >/.venv/bin/python","architecture":3,"sysVersion":"3.9.12 (main, Jul 7 2022, 18:46:15) \\n[GCC 9.3.0]","version":{"raw":"3.9.12","major":3,"minor":9,"patch":12,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.12 ('.venv': poetry)","detailedDisplayName":"Python 3.9.12 ('.venv': poetry)"}, Return Value: undefined`,
Error: Can not delete in empty document
at R (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203)
at D.getEdits (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718)
at D.updateConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952)
at D.doWriteConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556)
at async Object.factory (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216)
]
[ERROR 2022-7-25 17:1:0.166]: [
'Failed to activate a workspace, Class name = f, completed in 2251ms, has a falsy return value, Arg 1: /src/parser/handler.py>, Return Value: undefined',
Error: Can not delete in empty document
at R (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203)
at D.getEdits (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718)
at D.updateConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952)
at D.doWriteConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556)
at async Object.factory (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216)
]
[ERROR 2022-7-25 17:1:0.167]: Failure during activation. Error: Can not delete in empty document
at R (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203)
at D.getEdits (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718)
at D.updateConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952)
at D.doWriteConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556)
at async Object.factory (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216)
[ERROR 2022-7-25 17:1:0.167]: sendStartupTelemetry() failed. Error: Can not delete in empty document
at R (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203)
at D.getEdits (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718)
at D.updateConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952)
at D.doWriteConfiguration (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556)
at async Object.factory (vscode-file://vscode-app/< windows user home dir >/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216)
```
User Settings
``` Multiroot scenario, following user settings may not apply: languageServer: "Pylance" linting • prospectorEnabled: true formatting • provider: "black" terminal • activateEnvironment: false ```
Extension version: 2022.12.1 VS Code version: Code - Insiders 1.71.0-insider (9529e11f6481ae53bba821b05e34549491b9415e, 2022-08-25T13:00:37.808Z) OS version: Windows_NT x64 10.0.22000 Modes: Sandboxed: Yes Remote OS version: Linux x64 4.19.104-microsoft-standard