WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL2: VSCode WSL - Remote broken on Windows 19555

Open aeschli opened this issue 6 years ago • 3 comments

When starting the VSCode with the WSL - Remote extension on Windows Build 19555, the WSL terminal shows the following error:

[2020-02-01 14:56:02.345] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c "[ -d ~/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c0 ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2020-02-01 14:56:02.345] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Update: I pushed new versions of the Remote - WSL extension (0.41.9, 0.42.3) with a workaround (use a empty PATH when calling wsl.exe). Remote Windows can be opened again.

If you have problems opening a WSL shell, see https://github.com/microsoft/WSL/issues/4860

aeschli avatar Feb 03 '20 19:02 aeschli

Workaround without rollback: https://github.com/microsoft/WSL/issues/4860#issuecomment-581592480

JMBBunch avatar Feb 03 '20 20:02 JMBBunch

I pushed new versions of the Remote - WSL extension (0.41.9, 0.42.3) with a workaround (use a empty PATH when calling wsl.exe). Please let me know if this works for you.

aeschli avatar Feb 03 '20 22:02 aeschli

@aeschli Yes, I can confirm this works: Remote - WSL extension 0.41.9, VS Code 1.41.1, and Win10 is Insider Preview build 19555. Thanks so much!

JMBBunch avatar Feb 03 '20 22:02 JMBBunch