-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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 inferExpectedTypeArg #70889
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
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
Dec 17, 2024
Hmm, we may want to consider this for a v0.17.1. |
Change https://go.dev/cl/637635 mentions this issue: |
Change https://go.dev/cl/637675 mentions this issue: |
gopherbot
pushed a commit
to golang/tools
that referenced
this issue
Dec 19, 2024
…sh in instance conversion The new inference logic assumed that a CallExpr surrounding an instance was a function, but it could be a conversion, builtin, or invalid type. Add the missing check. Fixes golang/go#70889 Change-Id: I0b05a90cca671196cf5cfd8782b6863e17485cc1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/637635 Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Robert Findley <[email protected]> Commit-Queue: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> (cherry picked from commit 74dea82) Reviewed-on: https://go-review.googlesource.com/c/tools/+/637675
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this issue
Dec 26, 2024
0.17.1 This release fixes two crashes in [email protected]: golang/go#70889: a crash in completion of type instances inside a type conversion (found via telemetry). golang/go#70927: a crash when a test file has a declaration with signature func(*error). 0.17.0 This release includes a variety of new features, bug fixes, and performance improvements. It is also the first version of gopls to require the latest released version of the Go toolchain, which should be downloaded transparently during the gopls installation process.
This was referenced Dec 26, 2024
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.
Issue created by stacks.
This stack
w_8rjA
was reported by telemetry:crash/crash
runtime.gopanic:+69
runtime.panicdottypeE:=275
runtime.panicdottypeI:+5
golang.org/x/tools/gopls/internal/golang/completion.(*completer).inferExpectedTypeArg:+11
golang.org/x/tools/gopls/internal/golang/completion.expectedCandidate:+148
golang.org/x/tools/gopls/internal/golang/completion.Completion:+150
golang.org/x/tools/gopls/internal/server.(*server).Completion:+19
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+193
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3
runtime.goexit:+0
Dups: brclNw
The text was updated successfully, but these errors were encountered: