-
Notifications
You must be signed in to change notification settings - Fork 303
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 "execvp(3) failed.: No such file or directory" #590
Comments
And remote is
Output is: But remote host default shell is How can resolve this? |
I don't know what the problem is but it sounds like zsh might be involved. Could you try this with the "nightly" version of the extension (uninstall the stable version first)? |
vscode insider version is ok. 😄 @roblourens |
Great, thanks. |
I'm not sure I've got the most current version. It's not working, but appears to be a newer version. Through the extension manager, it shows I have:
Where do I get a nightly version of the extension? Or, do you mean install the vscode insider edition? |
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh-nightly - uninstall the stable version of the ssh extension first |
I'm having the exact same issue, and I thought zsh might be involved too, but I changed back to bash with
At the same time, a message window showed up at the top of the VSCode window saying
and an error message popped up on the bottom right saying
For the record, here's my other info:
Thoughts on where to go from here? |
Yes. Agree to @benlindsay, change the default shell to /bin/bash still have the same issue in the stable version. The error log is still like this:
And the insider version still ok. |
As some seem to indicate that a default shell of zsh might cause a problem - I've got my default shell on my laptop (macOS) and Linux host both set to bash:
@roblourens - I installed the nightly version of the extension as you specified, and while it works differently, it still fails. Here's the new error output - from the popup message:
And in my output window I get:
Seeing the above error mentioned a problem parsing remote port, I did put in a As suggested by @tosone, I tried installing So, it seems the fix for this is to just switch from the stable version of vscode to the insider's edition. |
I have no idea why this would work in Insiders but not stable vscode. Maybe the stable remote dir got into a bad state, you could try running "Uninstall vs code server" from stable vscode to start fresh and see if that helps. |
I tried switching to insider's edition like @magic-lantern mentioned, but it didn't work for me. This time, in the new VSCode window that pops up, I see this output:
Looks like it runs into a memory issue? I know there's a RAM limit of about 1 GB per user on this machine. Any idea how much memory this requires? |
@roblourens - In my case on the server/remote - I only have a If there is some additional debugging I can do to help identify differences between the VSCode versions, please let me know. I'm happy to help, but have done all I know how to do. |
That could probably be an issue. We don't have a specific requirement but I think it will eventually need more than that, given that your user is probably doing other things too. @magic-lantern it gets past that point, and there must be some line in the install script causing the failure. I guess I still have no idea unfortunately. |
I'm having this same problem. I used to be able to use remote ssh on insiders version. I tried today with latest version of both stable (1.35.1) and insiders (1.36.0) and I get these errors. On stable or insiders with 0.42.2, output shows this.
On insiders with nightly remote ssh extension, it opens a new window and output shows this.
EDIT: I tested the command referenced in the output in a normal terminal and this works fine and outputs
|
Have any of you set the setting |
I have the following in my settings.json file:
The reason for this was microsoft/vscode-python#4434 but it seems things have changed as I removed it and I am still able to use Conda Python environments. Removing that block from my settings file does fix this bug for me. |
Yep! I had the exact same thing as @magic-lantern for the exact same reason. Removing that fixes the problem for a different machine where I don't have a memory limitation. Thanks @roblourens! |
This makes sense because we try to open the terminal for 'sh' but with no path, we can't find it. I can reproduce it. |
@roblourens - is this problem something that the Remote-SSH plugin can either detect or work around? |
Sort of. I will use |
Steps to Reproduce:
my SSH config:
Output from "Remote - SSH"
When I paste the exact command above into the vscode terminial, specifically
I get back
Linux x86_64
The text was updated successfully, but these errors were encountered: