x/tools/gopls: cannot handle large files #33372
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.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, but differently
What operating system and processor architecture are you using (
go env
)?go env 1.12.5
Outputgo env 1.12.7
OutputWhat did you do?
1.12.5
I generated a 120k LOC with ANTLR, containing some actions (basically code that ANTLR copies from its grammar directly into the code).
I have to implement these actions in a separate file in the same package.
Every time this actions-file is changed and saved, gopls tries to reload the large (unchanged, generated) file, and thus autocompletion on any file is stuck for 10-20 seconds, after what
is printed multiple times, but the autocompletion does work again.
1.12.7
Does not print an error, but autocompletion is still stuck for at least 10 seconds.
What did you expect to see?
Pretty much that, but I would like a way to make gopls ignore specific - or in general, generated - files.
What did you see instead?
A practically unusable autocompletion while the file is reloaded.
Maybe related
#33221 , I installed
latest
instead ofmaster
, but it didn't solve the issue (for neither version).The text was updated successfully, but these errors were encountered: