Vscode-remote-release: There is no distribution with the supplied name on Remote - WSL v0.41.2

Created on 4 Dec 2019  路  8Comments  路  Source: microsoft/vscode-remote-release

  • VSCode Version: 1.41.0-insider
  • Local OS Version: Windows 10 x64 v1903
  • Remote OS Version: Fedora Remix on WSL
  • Remote Extension/Connection Type: WSL

Steps to Reproduce:

  1. update from extension version v0.41.1 to v0.41.2
  2. open WSL session: Remote-WSL: New window
  3. get this error:
[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.

bug verified wsl

Most helpful comment

Sorry, my fault. Published ms-vscode-remote.[email protected]

All 8 comments

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:

  • Ubuntu 19.10
  • Windows 10 Insider 10.0.19033 N/A Build 19033
  • Version: 1.41.0-insider (user setup)
    Commit: 97855786a014be2440751b038b373c3726e11fe8
    Date: 2019-12-03T05:40:39.806Z
    Electron: 6.1.5
    Chrome: 76.0.3809.146
    Node.js: 12.4.0
    V8: 7.6.303.31-electron.0
    OS: Windows_NT x64 10.0.19033
  • Remote Extension WSL 0.41.2

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 :)

Was this page helpful?
0 / 5 - 0 ratings