Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: strange output with gopls >= 0.3.0, no actual errors detected #37046
What did you do?
Made an error in code:
What did you expect to see?
gopls to report the error (or rather, squiggly lines in vs code)
What did you see instead?
No errors, lots of strange logs in gpls output:
This same error happens if I run it from "workspace" root (/home/teeaa/foo/bar) or from GOPATH root (/home/teeaa/foo/bar/go). However if I open just the "app" dir (/home/teeaa/foo/bar/go/src/foobar/cmd/daemon/) the errors appear as expected but jumping to different code points defined in packages doesn't work anymore in VS Code. If I open the src root (/home/teeaa/foo/bar/go/src) the errors in my package are displayed correctly, as well as over 1K errors in installed dependencies :( Also it takes ages to load.
On Gopls 0.2.2 everything works.