-
Notifications
You must be signed in to change notification settings - Fork 18k
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: set a deadline on go list
call in the initial workspace load
#42132
Comments
stamblerre:
This is clearly a go command bug, perhaps caused by the filesystem changing during a list run. I think you're asking if it could hang hitting the network, but I don't think so, and even if it did it would not use 100% cpu to do it. The fact that gopls hasn't killed it suggests that whatever triggered the load was running detached, e.g. the IWL. Perhaps we should set a deadline of last resort like 5 minutes? |
A deadline seems like a good idea--maybe we could add it as an experimental setting. |
Throwing this out there naively: could |
Unfortunately not-- |
go list
call in the initial workspace load
Change https://golang.org/cl/266478 mentions this issue: |
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
100% CPU utilization on
go list
.Here's the command that's running:
It seems like
go list
is stuck trying to list a package that no longer exists.Roughly the steps I took:
Unfortunately, I don't have the gopls logs as far as I know. I closed VSCode in an effort to bring down CPU usage.
The text was updated successfully, but these errors were encountered: