Join 36 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Originally reported in microsoft/vscode-go#2520
If you edit the package name, something in the caching causes persistent errors until a gopls restart.
Change https://golang.org/cl/178162 mentions this issue: internal/lsp: re-run go/packages.Load when the package name changes
internal/lsp: re-run go/packages.Load when the package name changes
Re-opening because this doesn't work if you don't save the file. I imagine that's likely because go/packages needs to be looking at the overlay for the package name, but I'm not certain.