-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Failed to run 'usr/local/go/bin/go env: Error: spawn usr/local/go/bin/go ENOENT #667
Comments
@yihanzhen Can you please share the output of I think the relevant change is #555 - previously, the extension silently failed to work correctly but now it surfaces the failure. However, there could be other bugs. |
Hey @hyangah thanks for the reply! Yep your analysis sounds right. My Anyway I got what I want (and lots of thanks!), feel free to close this issue or leave if open to track any potential improvements you may want to make. |
hi @yihanzhen, can you elaborate what you mean by:
and step you take to get it fix? |
@Rifqi12 so I had something like this in my bash file:
which was wrong and should have been:
Fixing that resolved the issue for me. |
Change https://golang.org/cl/256557 mentions this issue: |
go.logging.level determines the extension's debug logging level. Currently, all log messages go to console.log. Eventually, we will want to provide an option to output in an OUTPUT channel or a file. Add verbose logging to trace how the current GOROOT is determined and how PATH is mutated. Update #667 Change-Id: I95275ee4843d6cc9f8e34367f832a728ac1ea63f Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/256557 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Suzy Mueller <suzmue@golang.org>
Hi folks, I'm also getting an error like this. To me, VSCode for Mac works fine, however if the IDE is loaded in the browser via the In my case, I think the culprit is basically that Here's the
And here's my outputChecking configured tools.... GOBIN: undefined toolsGopath: /Users/ahmetb/gotools gopath: /Users/ahmetb/go GOROOT: /usr/local/Cellar/go/1.15.6/libexec PATH: /Users/ahmetb/go/bin:/Users/ahmetb/.krew/bin:/Users/ahmetb/workspace/dotfiles/bin:/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/usr/local/opt/python/libexec/bin:/usr/local/opt/openssl/bin:/usr/local/opt/gettext/bin:/usr/local/opt/gnu-time/libexec/gnubin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/gnu-indent/libexec/gnubin:/usr/local/opt/gnu-getopt/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/local/sbin:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/Users/ahmetb/gotools/bin:/usr/local/opt/fzf/bin:/Users/ahmetb/google-cloud-sdk/bin:/Users/ahmetb/Library/Application Support/cloud-code/installer/google-cloud-sdk/bin |
@ahmetb I think the bug #1065 caused confusion here (sorry for the regression and I hope to release a fix soon) The real culprit in your case is, as you already explained, |
@ahmetb I know this is an old issue but I've just come across the same error, and found that one of the root directories in my workspace had been removed from the filesystem, without also being removed from the workspace. Given the |
Closing, as this issue hasn't had any activity for a few months. |
This was also my problem. Thanks!! You saved my day! |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersgo env
to get the go development environment detailsShare the Go related settings you have added/edited
Default settings.
Describe the bug
Whenever editing a Go file, there is such an error in the output:
It seems like the absolute path got resolved to relative path incorrectly.
Switching back to 0.16.0 resolves the issue.
Screenshots or recordings
The text was updated successfully, but these errors were encountered: