Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
I have tried both values of the remote.SSH.useLocalServer setting
Expected Behavior
Remote-SSH connects successfully
Actual Behavior
Fails to connect, gives an error (see below)
Steps To Reproduce
echo "" > ~/.ssh/config on your machine (M1 MacBook in my case), try to connect to a remote SSH host. It will fail with the below error.
Devtools logs below (truncated after the first retry)
INFO Started local extension host with pid 15725.
log.ts:419 INFO Invoking resolveAuthority(ssh-remote)...
log.ts:419 INFO [LocalProcess0][resolveAuthority(ssh-remote,1)][0ms] obtaining proxy...
log.ts:419 INFO [LocalProcess0][resolveAuthority(ssh-remote,1)][0ms] invoking...
log.ts:439 ERR [LocalProcess0][resolveAuthority(ssh-remote,1)][12ms] returned an error TypeError: Cannot read properties of undefined (reading 'after')
at w (vscode-file://vscode-app/Users/jamy/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:447791)
at $ (vscode-file://vscode-app/Users/jamy/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:591885)
at async O (vscode-file://vscode-app/Users/jamy/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:591441)
at async s.parseWithConfig (vscode-file://vscode-app/Users/jamy/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:611272)
at async _.resolve (vscode-file://vscode-app/Users/jamy/.vscode/extensions/ms-vscode-remote.remote-ssh-0.115.0/out/extension.js:2:838390)
at async hB.$resolveAuthority (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:19786)
log.ts:439 ERR resolveAuthority(ssh-remote) returned an error after 12 ms CodeExpectedError: Cannot read properties of undefined (reading 'after')
at Hnt.qb (abstractExtensionService.ts:661:9)
at async Hnt.pb (abstractExtensionService.ts:622:19)
at async Hnt.Nb (nativeExtensionService.ts:363:22)
at async Hnt.ib (abstractExtensionService.ts:452:31)
log.ts:439 ERR Error received from starting extension host (kind: Remote)
log.ts:439 ERR CodeExpectedError: Cannot read properties of undefined (reading 'after')
at Hnt.qb (abstractExtensionService.ts:661:9)
at async Hnt.pb (abstractExtensionService.ts:622:19)
at async Hnt.Nb (nativeExtensionService.ts:363:22)
at async Hnt.ib (abstractExtensionService.ts:452:31)
log.ts:439 ERR [remote-connection][attempt 1] An error occurred in initial connection! Will retry... Error:
log.ts:439 ERR CodeExpectedError: Cannot read properties of undefined (reading 'after')
at Hnt.qb (abstractExtensionService.ts:661:9)
at async Hnt.pb (abstractExtensionService.ts:622:19)
at async Hnt.Nb (nativeExtensionService.ts:363:22)
at async Hnt.ib (abstractExtensionService.ts:452:31)
On 0.107.x it connects just fine. Based on some devtools tracing, it happens during the $resolveAuthority call.
Is there an existing issue for this bug?
9583
I have followed these troubleshooting steps
Expected Behavior
Remote-SSH connects successfully
Actual Behavior
Fails to connect, gives an error (see below)
Steps To Reproduce
echo "" > ~/.ssh/config
on your machine (M1 MacBook in my case), try to connect to a remote SSH host. It will fail with the below error.Devtools logs below (truncated after the first retry)
On 0.107.x it connects just fine. Based on some devtools tracing, it happens during the $resolveAuthority call.
Remote-SSH output log: