x/tools/gopls: .go files starting with "_" can cause error #43517
Milestone
Comments
@martinrode Thanks for the report. @stamblerre According to https://tip.golang.org/cmd/go/#hdr-Package_lists_and_patterns, directory and file names beginning with "." or "_" should be ignored by the go tool. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go, VS Code & VS Code Go extension are you using?
go version
gopls -v version
go env
Share the Go related settings you have added/edited
Describe the bug
In my project I have an obsolete "_claims.go" file which is not ignored by gopls, causing bugs:
if I comment the package "github.com/dgrijalva/jwt-go" in _claims.go gopls works again.
With this bug, none of the features like "Show all occurrences" work.
"gopls" should ignore all files starting with "_", the same as "go build" does.
The text was updated successfully, but these errors were encountered: