microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.31k stars 1.18k forks source link

Language server fails to start #19737

Closed username-dot-com closed 2 years ago

username-dot-com commented 2 years ago

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:

  1. Load a python project in vscode

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

``` 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

DrShushen commented 2 years ago

Same issue.

Output > Python content ``` Experiment 'pythonaacf' is active LSP Notebooks experiment is enabled LSP Notebooks interactive window support is enabled Python interpreter path: ~/miniconda3/envs/R_py38_lsi/bin/python > conda info --json > conda run -n R_py38_lsi --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/printEnvVariables.py > conda run -n RE_py37_clv --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/printEnvVariables.py > conda run -n RE_py37_clv --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/printEnvVariables.py > ~/miniconda3/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/RE_py37_clv/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/RE_py37_clv-no-gpu/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/RE_py38_clairvoyance2/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/RE_py38_clvai-temp/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > conda run -n RE_py37_clv --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/printEnvVariables.py > ~/miniconda3/envs/R_py38_jsyoon0823_TimeGAN/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/R_py38_lsi/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/R_py38_mtg/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/demo_py37_demo-dynamic-tte/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/demo_py38_demo-synth-data/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/demo_py39_dash_app_example/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > conda run -n RE_py37_clv --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/printEnvVariables.py > conda run -n RE_py37_clv --no-capture-output python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/printEnvVariables.py > ~/miniconda3/envs/misc_py310_star-tracker/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/py38-tp3d-dev_pt1.10-cu11.1-Minkowski/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/py38-tp3d-dev_pt1.11-cu11.3-NoMinkowski/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/py38-tp3d-dev_pt1.9-cu11.1-Minkowski/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/recr_py38_robsdavis/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py36_icil/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py36_sefs/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py37_scp/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py37_synctwin/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py38_dynamask/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py38_ebm-for-cate/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py38_gmct/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > ~/miniconda3/envs/review_py39_hybrid-ode/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > /mnt/data-linux/Dropbox/Programming/wsl_repos/_vds/clairvoyance2/.tox/.package/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > /mnt/data-linux/Dropbox/Programming/wsl_repos/_vds/clairvoyance2/.tox/py310/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > /mnt/data-linux/Dropbox/Programming/wsl_repos/_vds/clairvoyance2/.tox/py38/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > /mnt/data-linux/Dropbox/Programming/wsl_repos/_vds/clairvoyance2/.tox/py39/bin/python ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > /bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py > /usr/bin/python3 ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2022.13.12371004/pythonFiles/interpreterInfo.py [ERROR 2022-7-25 22:23:19.553]: [ 'Failed to get analysis options, Class name = u, completed in 25ms, has a falsy return value, , Return Value: undefined', Error: Can not delete in empty document at R (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ] [ERROR 2022-7-25 22:23:19.553]: [ 'Starting language server, Class name = d, completed in 25ms, has a falsy return value, , Return Value: undefined', Error: Can not delete in empty document at R (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ] [ERROR 2022-7-25 22:23:19.554]: [ `Failed to start language server, Class name = d, completed in 27ms, has a falsy return value, Arg 1: , Arg 2: {"id":"/home/essav/miniconda3/envs/R_py38_lsi/bin/python","sysPrefix":"/home/essav/miniconda3/envs/R_py38_lsi","envType":"Conda","envName":"R_py38_lsi","envPath":"/home/essav/miniconda3/envs/R_py38_lsi","path":"/home/essav/miniconda3/envs/R_py38_lsi/bin/python","architecture":3,"sysVersion":"3.8.12 (default, Oct 12 2021, 13:49:34) \\n[GCC 7.5.0]","version":{"raw":"3.8.12","major":3,"minor":8,"patch":12,"build":[],"prerelease":["final","0"]},"companyDisplayName":"Anaconda, Inc.","displayName":"Python 3.8.12 ('R_py38_lsi')","detailedDisplayName":"Python 3.8.12 ('R_py38_lsi': conda)"}, Return Value: undefined`, Error: Can not delete in empty document at R (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ] [ERROR 2022-7-25 22:23:19.554]: [ 'Failed to activate a workspace, Class name = f, completed in 1741ms, has a falsy return value, Arg 1: , Return Value: undefined', Error: Can not delete in empty document at R (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ] [ERROR 2022-7-25 22:23:19.555]: Failure during activation. Error: Can not delete in empty document at R (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) [ERROR 2022-7-25 22:23:19.555]: sendStartupTelemetry() failed. Error: Can not delete in empty document at R (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:19:2203) at D.getEdits (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:9718) at D.updateConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8952) at D.doWriteConfiguration (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8556) at async Object.factory (vscode-file://vscode-app/snap/code-insiders/1085/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:2696:8216) ```

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

debonte commented 2 years ago

Might be related to my auto-indent experiment change.