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: nil deref panic in go.test code action #72907

Closed
adonovan opened this issue Mar 17, 2025 · 3 comments
Closed

x/tools/gopls: nil deref panic in go.test code action #72907

adonovan opened this issue Mar 17, 2025 · 3 comments
Assignees
Labels
BugReport Issues describing a possible bug in the Go implementation. 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 Mar 17, 2025

@adonovan adonovan added gopls Issues related to the Go language server, gopls. gopls/telemetry-wins 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. labels Mar 17, 2025
@gopherbot gopherbot added this to the Unreleased milestone Mar 17, 2025
@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Mar 17, 2025
@adonovan adonovan self-assigned this Mar 17, 2025
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/658556 mentions this issue: gopls/internal/golang: fix crash in source.test code action

@findleyr
Copy link
Member

findleyr commented Mar 17, 2025

As I commented on the CL, I don't think this is that surprising. needPkg was added recently, and only matters if invoked with an only= filter that excludes other code actions requiring a package.

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation. 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

4 participants