x/tools/gopls: renaming package from "main" to something else produces "package <...>; expected main" #36593
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Please answer these questions before submitting your issue. Thanks!
What did you do?
Made a
package main
file with:Then, replace the whole thing with:
package what
As I was testing some other
gopls
thing that I wanted a_test
for (and nomain
).What did you expect to see?
Things work normally with a new package name.
What did you see instead?
An error on the
package
keyword: "package what; expected main"Logs (at the end): https://gist.github.com/zikaeroh/333988d491995d2516ed768ac78f3d38
Build info
Go info
The text was updated successfully, but these errors were encountered: