x/tools/gopls: "expected declaration, found 'package'" after cutting and pasting a file's contents #38424
Milestone
Comments
I'm seeing this issue. Looks like something like starting with an empty file or removing it's content, then typing the |
Change https://golang.org/cl/243577 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've noticed that the
go list
empty file error message will sometimes reappear in this case. This needs both a fix and a regression test.The text was updated successfully, but these errors were encountered: