x/tools/gopls: missing diagnostics when rootUri isn't module root #38354
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
With the following structure (note that a.go's last line won't compile):
If I open
b/b.go
from the module root, so that my workspacerootUri
isfile:///tmp/tmp.DA6ETbEMa6
gopls sends diagnostics fora.go
.Logfile:
But if I open
b.go
from withinpackage b
, so that my workspacerootUri
isfile:///tmp/tmp.DA6ETbEMa6/b
, gopls won't send any diagnostics fora.go
.Logfile:
What did you expect to see?
Diagnostics for
a/a.go
in both casesWhat did you see instead?
No diagnostics for
a/a.go
The text was updated successfully, but these errors were encountered: