microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.19k stars 28.84k forks source link

Remote Extension host terminated unexpectedly 3 times within the last 5 minutes. #187915

Closed andreistoica12 closed 1 year ago

andreistoica12 commented 1 year ago

Type: Bug

I have a Windows machine and I try to open a project in my WSL2 environment with VS Code. However, I get the error: "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes." with the latest release of VS Code server installed automatically on the WSL2 environment: 74f6148eb9ea00507ec113ec51c489d6ffb4b771 . It cannot see any git repository in the current folder, even though the root folder is a GitHub repository, thus I cannot see the changes made to my files. Please fix this as soon as possible.

VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:07.651Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.70GB (8.11GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/andreistoica12/twitter-provenance --remote=wsl+Ubuntu --crash-reporter-id 3f33ae1a-3ab9-4d64-ae21-0b24c6b5b46e| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.15.90.1-microsoft-standard-WSL2| |CPUs|11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)| |Memory (System)|7.61GB (6.96GB free)| |VM|0%|
Extensions (31) Extension|Author (truncated)|Version ---|---|--- jupyter-keymap|ms-|1.1.2 remote-containers|ms-|0.299.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.80.2 vscode-remote-extensionpack|ms-|0.24.0 remote-explorer|ms-|0.4.1 remote-server|ms-|1.3.0 svg-preview|Sim|2.8.3 xml|Dot|2.5.1 vscode-docker|ms-|1.25.2 isort|ms-|2023.10.1 python|ms-|2023.12.0 vscode-pylance|ms-|2023.7.20 jupyter|ms-|2023.6.1101941928 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 makefile-tools|ms-|0.7.0 autodocstring|njp|0.6.1 fabric8-analytics|red|0.3.10 java|red|1.20.0 tabnine-vscode|Tab|3.6.72 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-java-debug|vsc|0.52.0 vscode-java-dependency|vsc|0.23.0 vscode-java-pack|vsc|0.25.12 vscode-java-test|vsc|0.39.0 vscode-maven|vsc|0.41.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30789497 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30610678 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 a2ce3375:30757347 24365598:30736109 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 showindicator:30785052 pythongtdpath:30769146 bgfeh915:30780428 pythonnosm12tcf:30779713 pythonidxpt:30784022 pythonnocebcf:30776496 e537b577:30786199 dsvsc013:30789517 ```
dailyinvention commented 1 year ago

Same here. I disabled all of my extensions and it's still failing.

Here is what is showing up in the debugger as the error:

ERR No registered selector for ID: ms-vscode.npm-command: Error: No registered selector for ID: ms-vscode.npm-command at vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1515:26878

piankris commented 1 year ago

Same here

VSCodeTriageBot commented 1 year ago

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.

Happy Coding!

VSCodeTriageBot commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

LeviKing98 commented 1 year ago

I fixed this bug by remove the vscode-remote-containers and vscode-server in WSL2, that is rm -fr ~/.vscode-remote-containers rm -fr ~/.vscode-server rm -fr ~/.vscode. Then, reconnect to WSL2 in vscode and re-install the extensions you need.