#!stacks
"gopanic" && "ZeroExpr" && "createUndeclared" && "ApplyFix"
Not sure how TypesFromContext can return a Tuple type, but that function could use a clearer theory, better documentation, and comprehensive tests.
golang.org/x/tools/gopls@v0.19.1 go1.24.3 linux/amd64 other,vscode (1)
Issue created by stacks.
Not sure how TypesFromContext can return a Tuple type, but that function could use a clearer theory, better documentation, and comprehensive tests.
This stack
Ja7blgwas reported by telemetry:crash/crashruntime.gopanic:+69,+0x167golang.org/x/tools/internal/typesinternal.ZeroExpr:+68,+0x838golang.org/x/tools/gopls/internal/golang.createUndeclared:+75,+0x484golang.org/x/tools/gopls/internal/golang.ApplyFix.singleFile.func10:+1,+0x23golang.org/x/tools/gopls/internal/golang.ApplyFix:+43,+0x702golang.org/x/tools/gopls/internal/server.(*commandHandler).ApplyFix.func1:+1,+0x85golang.org/x/tools/gopls/internal/server.(*commandHandler).run.func2:+3,+0x86golang.org/x/tools/gopls/internal/server.(*commandHandler).run:+81,+0x582golang.org/x/tools/gopls/internal/server.(*commandHandler).ApplyFix:+2,+0x19cgolang.org/x/tools/gopls/internal/protocol/command.Dispatch:+31,+0xac1golang.org/x/tools/gopls/internal/server.(*server).ResolveCodeAction:+21,+0x1b8golang.org/x/tools/gopls/internal/protocol.serverDispatch:+46,+0xcf9golang.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,+0x95