Skip to content
New issue

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? Sign in to your account

x/tools/gopls: ~ in front of package declaration does not show an error #45478

Open
heschi opened this issue Apr 9, 2021 · 0 comments
Open

x/tools/gopls: ~ in front of package declaration does not show an error #45478

heschi opened this issue Apr 9, 2021 · 0 comments

Comments

@heschi
Copy link
Contributor

@heschi heschi commented Apr 9, 2021

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.

@gopherbot gopherbot added this to the Unreleased milestone Apr 9, 2021
@heschi heschi removed this from the Unreleased milestone Apr 9, 2021
@heschi heschi added this to the gopls/unplanned milestone Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants