vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

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

Open imnaiyar opened this issue 1 year ago • 1 comments

Is there an existing issue for this bug?

  • [X] I have searched the existing issues

Required Troubleshooting Steps

  • [X] I have followed these troubleshooting steps
  • [X] I have tried both values of the remote.SSH.useLocalServer setting

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

imnaiyar avatar May 14 '24 10:05 imnaiyar

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.

roblourens avatar May 17 '24 23:05 roblourens

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

imnaiyar avatar May 20 '24 14:05 imnaiyar

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

city19992 avatar May 31 '24 10:05 city19992

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

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

imnaiyar avatar Jun 01 '24 09:06 imnaiyar