x/tools/gopls: Rename: "unexpected composite literal type %T: %v" panic in satisfy.(*Finder).Find #71538
Labels
BugReport
Issues describing a possible bug in the Go implementation.
gopls/telemetry-wins
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
Issue created by stacks.
This crash indicates that satisfy was called on ill-typed code. Perhaps the best fix is to wait until #70638 is available and then change rename to avoid using the
satisfy
package entirely, as the type-checker will record this information as it goes.This stack
k3L0Og
was reported by telemetry:crash/crash
runtime.gopanic:+69
golang.org/x/tools/refactor/satisfy.(*Finder).expr:+65
golang.org/x/tools/refactor/satisfy.(*Finder).call:+26
golang.org/x/tools/refactor/satisfy.(*Finder).expr:+138
golang.org/x/tools/refactor/satisfy.(*Finder).stmt:+40
golang.org/x/tools/refactor/satisfy.(*Finder).stmt:+90
golang.org/x/tools/refactor/satisfy.(*Finder).Find:+19
golang.org/x/tools/gopls/internal/golang.(*renamer).satisfy:+27
golang.org/x/tools/gopls/internal/golang.(*renamer).checkMethod:+178
golang.org/x/tools/gopls/internal/golang.(*renamer).check:+16
golang.org/x/tools/gopls/internal/golang.renameObjects:+24
golang.org/x/tools/gopls/internal/golang.renameExported:+56
golang.org/x/tools/gopls/internal/golang.renameOrdinary:+157
golang.org/x/tools/gopls/internal/golang.Rename:+24
golang.org/x/tools/gopls/internal/server.(*server).Rename:+17
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+489
The text was updated successfully, but these errors were encountered: