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: types.IsInterface "Named.check == nil but type is incomplete" panic in methodsets.EnsurePointer #69537

Open
adonovan opened this issue Sep 19, 2024 · 2 comments
Labels
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

adonovan commented Sep 19, 2024

#!stacks
"runtime.gopanic" && "types.IsInterface" && "methodsets.EnsurePointer:+1"

Issue created by stacks.

The Named type passed to IsInterface has an Underlying type that is also a Named (indicating type checking is incomplete) yet the original Named (which may or may not be the same) has Named.check==nil (indicating type checking should be complete). This seems like a go/types bug.

This stack pY1Q7g was reported by telemetry:

golang.org/x/tools/gopls@v0.16.1 go1.23.0 linux/amd64 neovim (1)
@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 labels Sep 19, 2024
@gopherbot gopherbot added this to the Unreleased milestone Sep 19, 2024
@adonovan adonovan changed the title x/tools/gopls: types.Interface "Named.check == nil but type is incomplete" panic in methodsets.EnsurePointer x/tools/gopls: types.IsInterface "Named.check == nil but type is incomplete" panic in methodsets.EnsurePointer Sep 19, 2024
@adonovan
Copy link
Member Author

cc: @griesemer @timothy-king

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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