You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
In getBinPathFromEnvVar the code returns the first path that exists, regardless of permission. If that path is a directory named go and not an executable, the code will attempt to execute go version on the directory. This results in: error spawn eacces
In
getBinPathFromEnvVarthe code returns the first path that exists, regardless of permission. If that path is a directory namedgoand not an executable, the code will attempt to executego versionon the directory. This results in:error spawn eaccesLine of code in question: https://github.com/Microsoft/vscode-go/blob/master/src/goPath.ts#L24
Fix: I'm not too familiar with node, but checking the docs, I think this can be fixed by using the fs.accessSync method.
Workaround: Re-order your path, so the go executable is found before the directory.