You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode Version: 1.59.0
Local OS Version: Windows 10 Pro 21H1
Remote OS Version: Ubunutu 20.04 and Ubuntu 18.04
Remote Extension/Connection Type: WSL
Logs:
[2021-08-07 17:55:31.319] Resolving wsl+Ubuntu-20.04, resolveAttempt: 1
[2021-08-07 17:55:31.402] Starting VS Code Server inside WSL (Ubuntu-20.04)
[2021-08-07 17:55:31.402] Extension version: 0.58.2, Windows build: 19043. Multi distro support: available. WSL path support: enabled
In Developer Tools:
ERR Error: Command failed: C:\Windows\System32\wsl.exe -d Ubuntu-20.04 sh -c [ -f '/tmp/vscode-distro-env.jSWdqa' ] && cat '/tmp/vscode-distro-env.jSWdqa' || echo ''
at checkExecSyncError (child_process.js:625:11)
at Object.execFileSync (child_process.js:643:15)
at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846)
at Object.h [as executeCommand] (c:\Users\thomas\.vscode\extensions\ms-vscode-remote.remote-wsl-0.58.2\dist\extension.js:1:276626)
at D.getResolvedOptions (c:\Users\thomas\.vscode\extensions\ms-vscode-remote.remote-wsl-0.58.2\dist\extension.js:1:262664)
at c:\Users\thomas\.vscode\extensions\ms-vscode-remote.remote-wsl-0.58.2\dist\extension.js:1:263569
at new Promise (<anonymous>)
at D._resolve (c:\Users\thomas\.vscode\extensions\ms-vscode-remote.remote-wsl-0.58.2\dist\extension.js:1:263107)
at c:\Users\thomas\.vscode\extensions\ms-vscode-remote.remote-wsl-0.58.2\dist\extension.js:1:262120
at C._withProgress (c:\Users\thomas\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:85:44908)
at C.withProgress (c:\Users\thomas\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:85:44662)
at Object.withProgress (c:\Users\thomas\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:94:29933)
at D.resolve (c:\Users\thomas\.vscode\extensions\ms-vscode-remote.remote-wsl-0.58.2\dist\extension.js:1:261971)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async v.$resolveAuthority (c:\Users\thomas\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:90:18925)
Steps to Reproduce:
Call Remote SSH: New WSL window
What happens the commad:
If I run the command in powershell C:\Windows\System32\wsl.exe -d Ubuntu-20.04 sh -c [ -f '/tmp/vscode-distro-env.jSWdqa' ] && cat '/tmp/vscode-distro-env.jSWdqa' || echo '' the error message is: -f: 1: [: missing ].
The text was updated successfully, but these errors were encountered:
galtom
changed the title
WSL: Failed to connect to the remote extension host server Error: Command failed
WSL: Failed to connect to the remote extension host server. Error: Command failed
Aug 7, 2021
Found the issue. The problem was "Use Legacy Console" in cmd.exe. After turned off (right click on the Title bar of the windows of cmd.exe, and select Properties. On the Options tab disable the "Use Legacy Console" option), the WSL remote extension is working again.
If you try to run bash in cmd and got Unsupported console settings. In order to use this feature, the legacy console must be disabled. , your cmd is running in legacy mode, which affects all other consoles too.
VSCode Version: 1.59.0
Local OS Version: Windows 10 Pro 21H1
Remote OS Version: Ubunutu 20.04 and Ubuntu 18.04
Remote Extension/Connection Type: WSL
Logs:
In Developer Tools:
Steps to Reproduce:
Call
Remote SSH: New WSL window
What happens the commad:
If I run the command in powershell
C:\Windows\System32\wsl.exe -d Ubuntu-20.04 sh -c [ -f '/tmp/vscode-distro-env.jSWdqa' ] && cat '/tmp/vscode-distro-env.jSWdqa' || echo ''
the error message is:-f: 1: [: missing ]
.If I run the
sh -c
command enclosed with"
the file content gets displayed:The text was updated successfully, but these errors were encountered: