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-- |
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: