-
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: crash in View.Options #61325
Comments
Thanks for the report! @TristanSpeakEasy |
Hi @TristanSpeakEasy I see also from your activation history that you had manually restarted the language server several times. Could you share why you had to do that? |
This is really strange. The crash indicates that a view in @TristanSpeakEasy this is not reproducible, right? |
Moving this to [email protected], as I don't think we'll be able to figure this out in time for the v0.12.5 release, this crash must by very unlikely, and there's no way to avoid the crash even if we don't understand it: if |
So I have only seen the crash once so far, but I do get a lot of other weird behaviour with our work flow. Basically we develop a SDK Generation product and so we are quite often going through a flow of deleting and regenerating an entire Go project over and over again. I generally have to restart the Go language server after each generation as it stops providing any intellisense after a generation. |
Thanks for the explanation. Is this product open-source? I'd be interested in debugging. |
It’s not open source but it is available to use freely at the moment. It is a SDK generator from an OpenAPI document. We have a CLI tool that can be downloaded and used to generate a Go project over and over again https://speakeasyapi.dev/docs/speakeasy-cli/getting-started/ which causes the exact same behaviour if the go project is open in VSCode when you are regenerating |
Change https://go.dev/cl/526159 mentions this issue: |
gopls version: v0.12.4 (go1.20.5)
gopls flags:
update flags: proxy
extension version: 0.39.0
go version: 1.20.5
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Wed, 12 Jul 2023 01:49:36 GMT
restart history:
Mon, 10 Jul 2023 06:01:44 GMT: activation (enabled: true)
Wed, 12 Jul 2023 00:24:00 GMT: manual (enabled: true)
Wed, 12 Jul 2023 00:38:53 GMT: manual (enabled: true)
Wed, 12 Jul 2023 00:49:51 GMT: manual (enabled: true)
Wed, 12 Jul 2023 01:15:40 GMT: manual (enabled: true)
Wed, 12 Jul 2023 01:42:51 GMT: manual (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: