x/tools/gopls: changing build tags does not take effect without restarting the server #43432
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
gopls version v0.6.1
go version 1.15.6
How to repro
Open a folder with the following two go files
Gopls correctly shows the issue in both
main.go
andtag.go
as expected.Now, remove
//+build tag1
from tag.go and save.The old diagnostic message in main.go lingers.
What's more puzzling is:
When adding back
//+build tag1
, all the diagnostics disappear.The text was updated successfully, but these errors were encountered: