-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: crash in testFuncs with *error argument #70927
Labels
Milestone
Comments
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Dec 19, 2024
Change https://go.dev/cl/637815 mentions this issue: |
Change https://go.dev/cl/637736 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Dec 19, 2024
… with *error argument The test detection logic incorrectly assumes that named types have a non-nil package, which is not true for Error (as we've encountered numerous times). Add the missing nil check. Fixes golang/go#70927 Change-Id: Ibdf483304b53ce219123e820d74acd4f9d12d710 Reviewed-on: https://go-review.googlesource.com/c/tools/+/637815 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> (cherry picked from commit dcc725c) Reviewed-on: https://go-review.googlesource.com/c/tools/+/637736
Thanks for the fix @findleyr! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported by a user in golang/vscode-go#3617. I can reproduce this with a function that takes
*error
as its first argument.(how many times has this caught us out...?)
Here's the panic output:
I am using gopls v0.17.0
Originally posted by @beingnoble03 in golang/vscode-go#3617 (comment)
The text was updated successfully, but these errors were encountered: