-
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: rapid changes cause errors, context cancellation #32899
Comments
Per discussions with @stamblerre and @ianthehat on Slack, I suspect the issue here is something along the lines of:
|
This change fixed a similar issue. Are you still seeing this failure? |
I still see the errors mentioned in #32899 (comment) as of fb37f6b. The tricky thing is, this is very much a timing related issue... so I can't reproduce it reliably. I can't test much beyond that because https://go-review.googlesource.com/c/tools/+/184257 appears to have introduced some sort of bug/issue whereby trying to call Stack trace of that hang: https://gist.github.com/myitcv/9d1f257c32e1cddde1589c63d34c9a0e |
Oh, I expect you are seeing the issues fixed by @muirrn here: https://go-review.googlesource.com/c/tools/+/184880. |
Thanks, yes that did fix the hang. I'll monitor 504de27 and feedback here if I do/don't see any occurrences of the context cancellation issue. |
@myitcv: Any updates here? Can we close this issue? |
Hello! I'm using
I'm fairly new to |
@ereslibre: To confirm my understanding, does |
I tried with If you checkout https://github.com/ereslibre/kubernetes, the
Error: Sorry, is the best I have :( |
Murphy's law, now I can go back and forth without any issue after the last restart. Edit: I still get it sometimes, I just cannot understand the pattern. If I can use Edit: starting from a clean slate always gives me this issue the first time; after a restart sometimes I get it and sometimes I don't, I have to navigate a little more to trigger it. |
I was actually able to reproduce this issue myself in VSCode. Thanks for sharing the info - I will file a separate issue (#33551) because this sounds like a specific issue with the Kubernetes repository. |
Thanks a lot @stamblerre! |
@stamblerre - I'm definitely seeing issues with |
Turns out that issue was unrelated. Also looks (from a very unscientific couple of attempts to try and repro the issue) like things are "fixed" (just tested against 6d4652c) Will close for now; we can always re-open if this rears its head again. |
Forked from #32667 (comment).
I'm seeing this in a module context. In my situation, there are a number of relatively rapid changes to certain files (a code generator is the source of the changes, but the changes are notified to
gopls
viadidChange
notifications).I first see a number of lines like:
I also see a number of lines like:
Then I see a number of lines like:
I also see a number of lines like:
I don't yet have a repro for this.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputFWIW this was also an issue with:
The text was updated successfully, but these errors were encountered: