#!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
Comment From: adonovan
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)