Open
Description
#!stacks
"runtime.sigpanic" && "satisfy.(*Finder).expr:+75"
Issue created by stacks.
case *ast.SelectorExpr:
if _, ok := f.info.Selections[e]; ok {
f.expr(e.X) // selection
} else {
return f.info.Uses[e.Sel].Type() // qualified identifier <----------- panic
}
This is related to #71572 and #73109: satisfy was called on ill-typed code; and the resolution is the same: wait for #70638.
This stack kscqug
was reported by telemetry:
crash/crash
runtime.gopanic:+69
runtime.panicmem:=262
runtime.sigpanic:+19
golang.org/x/tools/refactor/satisfy.(*Finder).expr:+75
golang.org/x/tools/refactor/satisfy.(*Finder).stmt:+53
golang.org/x/tools/refactor/satisfy.(*Finder).stmt:+90
golang.org/x/tools/refactor/satisfy.(*Finder).expr:+30
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:+19
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.renameOrdinary:+99
golang.org/x/tools/[email protected] go1.23.2 darwin/arm64 vscode (1)
Dups: bgW9pQ aibuLA aJ9H_w x0Q4yQ 7x8J4g 9tBQQA EqiNlQ ae1P8Q jxCFrw lpgZrA P3nHGA CjT0cQ