Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
imnaiyar opened this issue May 14, 2024 · 4 comments
Closed
3 tasks done
Assignees
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH

Comments

@imnaiyar
Copy link

imnaiyar commented May 14, 2024

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • 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 imnaiyar added the ssh Issue in vscode-remote SSH label May 14, 2024
@imnaiyar imnaiyar changed the title [Remote-SSH Bug]: [Remote-SSH Bug]: Cannot read properties of undefined (reading 'after') May 14, 2024
@roblourens
Copy link
Member

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 roblourens added the info-needed Issue requires more information from poster label May 17, 2024
@imnaiyar
Copy link
Author

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
Copy link

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

@imnaiyar
Copy link
Author

imnaiyar commented Jun 1, 2024

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

microsoft/vscode#212685 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants