golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.87k stars 748 forks source link

Use -trimpath when installing tools #2227

Open hyangah opened 2 years ago

hyangah commented 2 years ago

That will reduce the chance of including users' file system paths in stack trace reports.

gopherbot commented 2 years ago

Change https://go.dev/cl/404156 mentions this issue: src/goInstallTools: pass -trimpath to go install command

hyangah commented 2 years ago

It seems that gocode and gocode-mod both fail to resolve symbols/types when trimpath is used (they either panic or report interface{} or any types as invalid types.