x/tools/gopls: //go:generate ...
code lens fails due to GOPROXY=off
#55109
Labels
Milestone
//go:generate ...
code lens fails due to GOPROXY=off
#55109
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.go version go1.19.1 linux/amd64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Steps to reproduce the behavior:
main.go
have line with//go:generate
following by anygo run ...
command like//go:generate go run golang.org/x/tools/cmd/stringer@latest --help
(it does not have to be
go run golang.org/x/tools/cmd/stringer@latest --help
)run go generate
in the codelensResult:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
If I run
go generate
directly in the terminal:The text was updated successfully, but these errors were encountered: