x/tools/gopls: CodeActions: nil panic in refactorRewriteEliminateDotImport
Opened this issue · 3 comments
adonovan commented
#!stacks
"sigpanic" && "types.(*PkgName).Imported" && "refactorRewriteEliminateDotImport:+17"
Issue created by stacks.
This stack LT-h9Q was reported by telemetry:
crash/crashruntime.gopanic:+69,+0x167runtime.panicmem:=262,+0x358runtime.sigpanic:+19,+0x328go/types.(*PkgName).Imported:=258,+0x112golang.org/x/tools/gopls/internal/golang.refactorRewriteEliminateDotImport:+17,+0xc0golang.org/x/tools/gopls/internal/golang.CodeActions:+64,+0x624golang.org/x/tools/gopls/internal/server.(*server).CodeAction:+154,+0x5a8golang.org/x/tools/gopls/internal/protocol.serverDispatch:+160,+0x239cgolang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x84golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x908golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xc5golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x95runtime.goexit:+0,+0x0
golang.org/x/tools/gopls@v0.19.1 go1.24.4 linux/amd64 vscode (1)
Dups: XDE2Zg kVunHQ dRDhIw
adonovan commented
This stack XDE2Zg was reported by telemetry:
crash/crashruntime.gopanic:+69,+0x167runtime.panicmem:=262,+0x197runtime.sigpanic:+9,+0x167go/types.(*PkgName).Imported:=258,+0x112golang.org/x/tools/gopls/internal/golang.refactorRewriteEliminateDotImport:+17,+0xc0golang.org/x/tools/gopls/internal/golang.CodeActions:+64,+0x624golang.org/x/tools/gopls/internal/server.(*server).CodeAction:+154,+0x5a8golang.org/x/tools/gopls/internal/protocol.serverDispatch:+160,+0x239cgolang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x84golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x908golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xc5golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x95runtime.goexit:+0,+0x0
golang.org/x/tools/gopls@v0.19.1 go1.24.4 windows/amd64 other (1)
adonovan commented
This stack kVunHQ was reported by telemetry:
crash/crashruntime.gopanic:+69,+0x153runtime.panicmem:=262,+0x2ffruntime.sigpanic:+19,+0x2ccgo/types.(*PkgName).Imported:=258,+0x120golang.org/x/tools/gopls/internal/golang.refactorRewriteEliminateDotImport:+17,+0xccgolang.org/x/tools/gopls/internal/golang.CodeActions:+64,+0x51bgolang.org/x/tools/gopls/internal/server.(*server).CodeAction:+154,+0x3ffgolang.org/x/tools/gopls/internal/protocol.serverDispatch:+160,+0x1d9fgolang.org/x/tools/gopls/internal/lsprpc.(*StreamServer).ServeStream.ServerHandler.func4:+5,+0x73golang.org/x/tools/gopls/internal/lsprpc.(*StreamServer).ServeStream.handshaker.func5:+52,+0x68fgolang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xbfgolang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x8fruntime.goexit:+0,+0x3
golang.org/x/tools/gopls@v0.20.0 go1.24.5 darwin/arm64 other,vscode (1)
adonovan commented
This stack dRDhIw was reported by telemetry:
crash/crashruntime.gopanic:+69,+0x14fruntime.panicmem:=262,+0x2e7runtime.sigpanic:+19,+0x2b8go/types.(*PkgName).Imported:=258,+0x108golang.org/x/tools/gopls/internal/golang.refactorRewriteEliminateDotImport:+17,+0xc0golang.org/x/tools/gopls/internal/golang.CodeActions:+64,+0x4d3golang.org/x/tools/gopls/internal/server.(*server).CodeAction:+154,+0x3c3golang.org/x/tools/gopls/internal/protocol.serverDispatch:+160,+0x1bb7golang.org/x/tools/gopls/internal/lsprpc.(*StreamServer).ServeStream.ServerHandler.func4:+5,+0x6fgolang.org/x/tools/gopls/internal/lsprpc.(*StreamServer).ServeStream.handshaker.func5:+52,+0x637golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xb3golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x7fruntime.goexit:+0,+0x3
golang.org/x/tools/gopls@v0.20.0 go1.25.0 darwin/arm64 other (5)