-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/completionIssues related to auto-completion in gopls.Issues related to auto-completion in gopls.gopls/telemetry-wins
Milestone
Description
#!stacks
"runtime.typeAssert" && "completion.(*completer).item:+33"
Issue created by stacks.
if isTypeName(obj) && c.wantTypeParams() {
// obj is a *types.TypeName, so its type must be Alias|Named.
tparams := typesinternal.TypeParams(obj.Type().(typesinternal.NamedOrAlias))
label += typesutil.FormatTypeParams(tparams)
insert = label // maintain invariant above (label == insert)
}This stack kzwYeg was reported by telemetry:
crash/crashruntime.gopanic:+69runtime.getitab:+58runtime.typeAssert:+7golang.org/x/tools/gopls/internal/golang/completion.(*completer).item:+33golang.org/x/tools/gopls/internal/golang/completion.(*completer).addCandidate:+44golang.org/x/tools/gopls/internal/golang/completion.(*completer).deepSearch:+71golang.org/x/tools/gopls/internal/golang/completion.Completion:+158golang.org/x/tools/gopls/internal/server.(*server).Completion:+19golang.org/x/tools/gopls/internal/protocol.serverDispatch:+193golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3runtime.goexit:+0
golang.org/x/tools/[email protected] go1.23.4 darwin/arm64 other,vscode (5)
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/completionIssues related to auto-completion in gopls.Issues related to auto-completion in gopls.gopls/telemetry-wins