microsoft / vscode-remote-release

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.
https://aka.ms/vscode-remote
Other
3.67k stars 291 forks source link

[Remote-SSH Bug]: Cannot read properties of undefined (reading 'after') #9883

Closed imnaiyar closed 5 months ago

imnaiyar commented 6 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It doesn’t connect successfully (different error message)

->

Trying to use "Connect to Host" gives the error Cannot read properties of undefined (reading 'after') Randomly started happening. I tried uninstalling VS Code, removed all related files, and then installed it again, but the issue persisted.

Screenshot 2024-05-14 153033

Expected Behavior

For it to not give the error and actually connect

Steps To Reproduce

  1. Open Command Palette
  2. Click "Connect to Host" Option

Remote-SSH Log

Remote-SSH Log

``` TypeError: Cannot read properties of undefined (reading 'after') at w (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.2024050815\out\extension.js:2:455053) at $ (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.2024050815\out\extension.js:2:604114) at P (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.2024050815\out\extension.js:2:602947) at getConfiguredHostnames (c:\Users\admin\.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.2024050815\out\extension.js:2:470350) at r.h (c:\Users\admin\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:189457) at async Promise.all (index 1) at t.RemoteTreeDataProvider.refeshSshHosts (c:\Users\admin\.vscode\extensions\ms-vscode.remote-explorer-0.4.3\dist\node\extension.js:1:8182) at async Promise.all (index 1) remote-internal.getConfiguredHostnames {"value":"ms-vscode-remote.remote-ssh","_lower":"ms-vscode-remote.remote-ssh"} ```

Anything else?

No response

roblourens commented 5 months ago

Thanks for the stack- could you share your ssh config file? Feel free to redact any addresses or specific names but I'd like to see the structure and which props show up in which order.

imnaiyar commented 5 months ago

Its basically empty Screenshot 2024-05-17 051310

Thanks for the stack- could you share your ssh config file? Feel free to redact any addresses or specific names but I'd like to see the structure and which props show up in which order.

Its basically empty Screenshot 2024-05-20 200608

city19992 commented 5 months ago

Hi, I have the same problem. How did you solve it?

imnaiyar commented 5 months ago

Hi, I have the same problem. How did you solve it?

https://github.com/microsoft/vscode/issues/212685#issuecomment-2135481904