x/tools/gopls: cannot handle large files #33003
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.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Open
$(go env GOROOT)/src/cmd/compile/internal/ssa/rewriteAMD64.go
in your editor, and remove the indentation from every line in the file. Now triggergoimports
by whatever means necessary in your editor; you will seegopls
run out of memory before the method returns:This was discovered whilst I was trying to test out how
govim
behaved under the "load" of thousands of edits fromgopls
.What did you expect to see?
The file to be correctly reformatted.
What did you see instead?
Out of memory error.
cc @stamblerre @ianthehat
The text was updated successfully, but these errors were encountered: