-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/cmd/gopls: locks up with "no room in queue" error #32467
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
This seems to happen because the https://github.com/golang/tools/blob/master/internal/lsp/protocol/protocol.go#L14 I think increasing the default to a more-reasonable |
After a bit of discussion, it seems reasonable to point out that this will not fix any request that happens to wedge the server, it would only fix a congestion issue that isn't a result of deadlock. |
yes this issue exists for few days/weeks. gopls is being unable to use in windows or WSL |
Chiming in with a bit of data... I'm now seeing this issue after the latest release
My build information
|
The Finally, I lost my patience today and switched to "bingo". Hope this helps someone:
|
@VojtechVitek: What version of |
|
Change https://golang.org/cl/183718 mentions this issue: |
This abandons the limited size queue Instead we kick a go-routine per request, but have each request wait for the previous request to say it is okay to continue. This allows each request to control when it is finished with tasks that required strict ordering without every blocking the routine that handles replies. It also protects against repeated or missing replies. Fixes golang/go#32631 Fixes golang/go#32589 Fixes golang/go#32467 Fixes golang/go#32360 Fixes golang/go#31977 Change-Id: Icd071620052351ec7f8fac136f1b8e3f97d4bb2d Reviewed-on: https://go-review.googlesource.com/c/tools/+/183718 Run-TryBot: Ian Cottrell <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
There have been numerous reports of users seeing
gopls
freeze up, fail all request, and log "no room in queue". This seems to be a symptom of some largergopls
failure, likely a deadlock in the process of type-checking. It has been mentioned in discussions on #32360 and #31977.The text was updated successfully, but these errors were encountered: