Skip to content

x/tools/gopls: analysis driver spuriously reports invalid suggested fixes due to AST repair #71659

Closed
@adonovan

Description

@adonovan
#!stacks
"bug.Reportf" && "cache.(*action).exec.func3:+3" &&
  "unreachable.(*deadState).findDead:+17"

Issue created by stacks.

This stack indicates that the unreachable analyzer violates the SuggestedFix preconditions now documented and checked by the gopls analysis driver.

This stack Gf7EXQ was reported by telemetry:

golang.org/x/tools/gopls@v0.18.0-pre.1 go1.23.5 windows/amd64 vscode (1)

Dups: EmaIvQ KznUPA JuVvTw 10HCWA mAqhog S-mQmQ 2q8x9A Vc6s2g yM5t_A Ne_rfg rN06Cw QGVc7g cp-4UQ fb8Dbg bgKp4Q H8EfOg tIGLig s00Qzg wX0s_A EFdz_A _AqRig 2l7h9g 6L5mmA g92Uyw 2e6Ziw B3yvxg SLq6lA eMJmBQ VMn62A nxVngw 4wnTaA H2vDzA S4gjMA -DlRtg Rm3VbQ Zumn2w H0xvEQ -ubuiA eFXWcg U_brvg TqSiJg ipVwYg Zumn1Q WCZHkQ nR04fA kIYX0g 0bITOw VdeswQ XFAqdQ PbQHuw 6voO2Q pZqskQ DA7D_A VH1-DA i9_tJQ n5N7dg tIGkrQ LnzCqA x1y8CA Qp27eQ PFqrmQ 4mILPg UDizTQ b9U4IQ PvdWVA 8wIiMg Bq6TzA YJB1_g F4iflQ iFCmBQ wdx4HQ nKrzAg Yfy4AA 6DjaiQ PzXexg uUz53Q PbQHtQ iL26ow tZ47aA hEZ8jQ _ib_lQ ES4UWQ l5KxTA SiK0wg a1BwtQ Qp27dw sxnjrg pjphnQ CZptaQ _KvAFg uUYSlQ PFqrlw s81mPQ gz-6_Q TnPjWA P45F0g g92UxQ UNskGw nxVnjQ ToZf2A MDBb5A XOUtMg NxSYDQ UrxMYQ s81mMw omHK6Q D42jvg cvb-1Q R2CNEA Ba1Hhg -o---g Lz4aYg S-mQlw 1ajsgA 02S12g tM7wUQ Pq5zVg

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/telemetry-wins

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions