x/tools/gopls: renaming package from "main" to something else produces "package <...>; expected main" #36593
Labels
Milestone
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
I should note that the issue seems to have gone away when I wrote more code in the file (and obviously, on restart). |
This is a duplicate of issue #32149 |
Duplicate of #32149 |
Thanks for noticing that, @ridersofrohan! Closing in favor of other issue, which I've moved to the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: