-
Notifications
You must be signed in to change notification settings - Fork 875
Failed to open Workspace from VSCode extension #10896
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
Failed to open Workspace from VSCode extension #10896
Comments
To add more context, we have two methods to add a VS Code Desktop button.
resource "coder_agent" "dev" {
display_apps {
vscode = false
}
}
We are using the module at dev.coder.com template. |
@f0ssel can you add your SSH config file contents in here? |
I'm confident it's due to some strange config file not found issue. |
You got it dude. 👍
Like I said, brand new laptop so I haven't tinkered much at all yet. Not to say that the new MacOS doesn't do anything funky somewhere. |
Ok, well clearly, it's looking for Config that ain't there: What's responsible for adding VS Code entries in the config file? Our plugin? |
looks like coder/vscode-coder#159 @code-asher |
Looks like the URL is missing from the connection string, so it defaults to localhost, the queries fail (the plugin grabs a bunch of things before writing out the SSH entry like the version, workspace status, downloads the binary, etc), and the configuration is aborted. I have two PRs up, one to add the missing URL query param to the VS Code desktop module, and another to handle a missing URL gracefully in the plugin by asking the user to input it. However, there could be another bug. coder/vscode-coder#159 does not mention localhost and for a while I was able to reproduce another bug where the remote SSH plugin appeared to start connecting before the Coder plugin was finished configuring SSH, which I think might be what happened there. Subsequent attempts work since the config is written at that point. Unfortunately I can no longer reproduce this one, but I will keep looking into it. |
On a new ARM Macbook Pro I was joining the dev instance and after my workspace was brought up I clicked the "VS Code Desktop" button and had the extension install itself. Afterwards I get a error connection refused to localhost on port 80 and a dump of the error logs from SSH. I see no Coder extension logs.
SSH Output:
Video of experience:
https://github.com/coder/coder/assets/19379394/73cf3e79-c553-4e90-b63e-4d9cfa43c8e7
The text was updated successfully, but these errors were encountered: