在安装Go with asdf
并尝试打开Go项目后,我得到以下错误。
Failed to find the "go" binary in either。GOROOT() or PATH(/usr/bin:/bin:/usr/sbin:/sbin). Check PATH, or Install Go and reload the window.
发布于 2022-02-23 17:15:16
我只是通过重新启动VSCode来修复这个问题。
另一个人还建议对本期进行修复,我不需要这样做。
go env
并复制GOROOT值(在我的示例中是/opt/homebrew/Cellar/go/1.17.1/libexec
)。"go.goroot": "Copied/GOROOT/path",
就我来说是:
"go.goroot": "/opt/homebrew/Cellar/go/1.17.1/libexec"
https://stackoverflow.com/questions/71241347
复制相似问题