Steps to Reproduce:
[2019-12-04 09:37:18.013] Resolving wsl+fedoraremix, resolveAttempt: 1
[2019-12-04 09:37:18.064] Starting VS Code Server inside WSL (f)
[2019-12-04 09:37:18.064] Extension version: 0.41.2, Windows build: 18362. Multi distro support: available. WSL path support: enabled
[2019-12-04 09:37:18.259] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d f -e sh -c "[ -d ~/.vscode-server-insiders/bin/43e3581aa635406ada2d8138d7ee242ddabefc1c ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2019-12-04 09:37:18.348] Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d f -e sh -c "[ -d ~/.vscode-server-insiders/bin/43e3581aa635406ada2d8138d7ee242ddabefc1c ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2019-12-04 09:37:18.348] Launching C:\WINDOWS\System32\wsl.exe -d f sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" 43e3581aa635406ada2d8138d7ee242ddabefc1c insider .vscode-server-insiders 0 --disable-telemetry' in c:\Users\Marc\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.41.2
[2019-12-04 09:37:18.405] There is no distribution with the supplied name.
[2019-12-04 09:37:18.405]
[2019-12-04 09:37:18.406] VS Code Server for WSL closed unexpectedly.
[2019-12-04 09:37:18.406] For help with startup problems, go to
[2019-12-04 09:37:18.406] https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
Probable cause:
it should be wsl.exe -d fedoraremix, not wsl.exe -d f. Hence WSL can't find the distro and borks.
Workaround for now:
use old extension v0.41.1
Please let me know if I can be of assistance testing.
I had the same issue with Ubuntu 18.04
Unable to detect if server is already installed: Error: Command failed: C:\WINDOWS\System32\wsl.exe -d U -e sh -c "[ -d ~/.vscode-server-insiders/bin/43e3581aa635406ada2d8138d7ee242ddabefc1c ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
Thank you. Seems only the first letter of the distribution name comes through. f in my case and U in yours.
Same here, the command
C:\WINDOWS\System32\wsl.exe -d u -e sh -c "[ -d ~/.vscode-server-insiders/bin/97855786a014be2440751b038b373c3726e11fe8 ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
If I fix the distribution name, it work.
Env:
Sorry, my fault. Published ms-vscode-remote.[email protected]
@aeschli Thanks for quick patch !
Confirmed working with 0.41.3!
No need to say sorry. I use this every day and every contributor has made my life a lot easier.
Thanks very much :-)
@edwardvdv I'm happy the extension is useful to you, thanks for the feedback.
Thanks for reporting the issue so quickly. You can always also ping me directly (add FYI @aeschli) so I get alerts faster. But of course I hope that doesn't happen so soon again.
@aeschli Thanks I also filed a duplicate bug report and can confirm all is well in VSC Insiders heaven. By the way, great support and timely fix. The extension has worked extremely well thus far so a little blip doesn't need an apology. Thanks again :)
Most helpful comment
Sorry, my fault. Published ms-vscode-remote.[email protected]