x/tools/gopls: failure to recover from cancelled reinitialization #57626
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
I just encountered this after refactoring some of our workspace tests: when a snapshot is reinitialized (for example, because of a go.work change), in some cases it is possible that reinitialization is can be cancelled if it is not running on a durable context.
This can lead to a broken workspace, because while we allow network access on reinitialization, we don't allow it when loading individual packages / files.
I think this could be one of the major remaining causes of inconsistent state following a branch switch or
go generate
command.The text was updated successfully, but these errors were encountered: