-
Notifications
You must be signed in to change notification settings - Fork 765
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
bug #971 is referenced by a current warning message, but is closed without a fix #1887
Comments
Same problem, same VS Code version here, using Windows with VS Code running in WSL (debian). The path shown seems to be the content of the windows path instead of the linux path which contains the go installation. |
The extension inherits the PATH or Path used by the VS Code process - unfortunately, that can be different from what you see from the integrated terminal (that runs your login shell on top of the VS Code process environment). The hard coded path was used as the last resort only when PATH available to the extension doesn't contain valid Go. The warning message should show the path the extension is seeing. If it doesn't include the path, please open an issue to VS Code repo (describing how you launched your vscode process and the vscode version). |
BTW can you please check the VS Code version? I just found microsoft/vscode#136791 that may be relevant (so VS Code failed to compute the right shell environment and broke WSL mode too) |
VS Code version 1.62 introduced the error, so downgrading to 1.61.2 fixed that for me. |
I ran into this today and managed to figure out a fix, i'm using zsh so the examples here are for remote zsh shells, but likely the same behaviour happens with bash, i'm also using asdf to manage my local development tools. vscode connects to the remote server over a non-interactive shell, non-interactive shells only source
Once you've added this you need to kill the remote server, it will restart on next new connection and source For bash rather than |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
goenv:
go version:
gopls -v version
code -v
extension:
0.29.0
Locate configured go tools:
Note that the PATH is wrong: this is what it is in the terminal:
Share the Go related settings you have added/edited
go settings
Describe the bug
I am encountering the symptoms of closed bug #971 That bug has no long term solution implemented, just a hardcoded path lookup for an alternative concrete location.
If the bug is really fixed, perhaps remove the 'temporary' reference to the bug from the error message. If it isn't, perhaps reopen the bug (and close this as a dupe),... or perhaps turn this into the current iteration of this bug.
The text was updated successfully, but these errors were encountered: