x/tools/gopls: organizeImports is non-deterministic #59976
Labels
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
Discovered while porting the marker tests: organizeImports is non-deterministic in its manipulation of the AST. For example, consider the following program:
When removing the import block, organizeImports leaves behind exactly one of the
a
,b
, comments, but non-deterministically.The text was updated successfully, but these errors were encountered: