x/tools/gopls: ~ in front of package declaration does not show an error #45478
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
If I put a ~ in front of the package declaration of a file, gopls gets very slow, but doesn't report an error that the ~ is invalid syntax. I haven't investigated yet, but it feels like the
packages.Load
goes sideways and the file is removed from the package, causing lots of errors in other files about missing declarations. And then since the file isn't in a package, we don't diagnose it any more, perhaps.The text was updated successfully, but these errors were encountered: