Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls: Completion: failed type assertion in completer.item #71044

Open
adonovan opened this issue Dec 27, 2024 · 1 comment
Open

x/tools/gopls: Completion: failed type assertion in completer.item #71044

adonovan opened this issue Dec 27, 2024 · 1 comment
Labels
gopls/completion Issues related to auto-completion in gopls. gopls/telemetry-wins gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@adonovan
Copy link
Member

#!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:

golang.org/x/tools/[email protected] go1.23.4 darwin/arm64 other,vscode (5)
@adonovan adonovan added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. gopls/telemetry-wins gopls/completion Issues related to auto-completion in gopls. labels Dec 27, 2024
@gopherbot gopherbot added this to the Unreleased milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls/completion Issues related to auto-completion in gopls. gopls/telemetry-wins gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants