-
Notifications
You must be signed in to change notification settings - Fork 18k
gopls: automated issue report (crash) #63700
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
Comments
Change https://go.dev/cl/537075 mentions this issue: |
There are a number of overlapping things here but the primary cause is missing error checks when converting from go list output to types.Sizes (and the logic has changed but there are different errors in both the old and the new logic). The crash can be readily reproduced (in v0.13.2 and on master) by giving a bad GOARCH:
Fix (for tip) pending. I don't intend to fix v0.13.2. |
Closing as a duplicate of #63701 in gopls, for which a fix is pending. |
Hi, can you please report if you are using a |
Change https://go.dev/cl/537875 mentions this issue: |
I am not |
Change https://go.dev/cl/537876 mentions this issue: |
While investigating a bug that turned out to lie elsewhere (#63700), we were troubled by the inconsistencies between the pair of errors returned by functions in this package. This change makes things more consistent. Updates golang/go#63700 Change-Id: I926c47572b7f666327bd1dba71ace68a5591bf2f Reviewed-on: https://go-review.googlesource.com/c/tools/+/537875 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
This change causes packages.Load to set TypesSizes to a fallback value whenever the external GOPACKAGESDRIVER fails to populate the Compiler and GOARCH fields of the response. Fixes golang/go#63700 Change-Id: I189ae97dde04f313f79e5db39a10b4a217cd8534 Reviewed-on: https://go-review.googlesource.com/c/tools/+/537876 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
Change https://go.dev/cl/537877 mentions this issue: |
…ER leaves Compiler/GOARCH="" This change causes packages.Load to set TypesSizes to a fallback value whenever the external GOPACKAGESDRIVER fails to populate the Compiler and GOARCH fields of the response. Fixes golang/go#63700 Change-Id: I189ae97dde04f313f79e5db39a10b4a217cd8534 Reviewed-on: https://go-review.googlesource.com/c/tools/+/537876 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> (cherry picked from commit ff1953b) Reviewed-on: https://go-review.googlesource.com/c/tools/+/537877 Reviewed-by: Alan Donovan <[email protected]> Auto-Submit: Robert Findley <[email protected]>
This should be fixed in v0.14.1-pre.1 (on v0.14.0 there is a workspace error message instead of a panic).
Could anyone here please try that out to confirm? With your confirmation, we will release v0.14.1 tomorrow. |
I just ran into this on
Cleaned up from my editor (Helix):
Invoking editor something like:
And
|
Hi @bcspragu, the filename in that stack trace shows [email protected], so I suspect you are not running the executable you intended to, and the source at that line corresponds to the bug that was fixed, as mentioned above. Please try reinstalling gopls@latest, and check the version of the gopls command on the $PATH. Do let us know if the problem recurs after that. |
Oof yeah apologies for the noise, looks like I just forgot to reload my shell to pick up my |
gopls version: v0.13.2 (go1.21.0)
gopls flags:
update flags: proxy
extension version: 0.39.1
go version: 1.21.3
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Mon, 23 Oct 2023 12:40:27 GMT
restart history:
Mon, 23 Oct 2023 12:08:39 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.
NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.
<OPTIONAL: ATTACH LOGS HERE>
The text was updated successfully, but these errors were encountered: