-
Notifications
You must be signed in to change notification settings - Fork 645
Rename stuck with 100% CPU utilization #2468
Comments
We don't have much control over the performance of the Does this happen only when using Go modules? |
What? I use modules since the very beginning Yes please disable gorename so I will finally switch to Goland and stop wasting time on this non-sense. |
Depending on command line tools for various language features for Go is what most editors (VS Code, Sublime, Atom, vim, emacs) have done from the very beginning. This has served us very well over several years. Lately, with the introduction of Go modules, most of the tools in the Go tools eco system have been disrupted. Take a look at golang/go#24661 to get an idea of this disruption. We will eventually all move to using language servers such that a single tool serves multiple language feature requests and can be the one stop shop for all language needs. Until then, the one improvement that we can consider is adding a timeout for all situations where we use command line utilities like
Since it works some of the times, instead of disabling it altogether, we will add a timeout for this
That is absolutely your choice. Closing this issue as we have #2348 that tracks the current solution to the problem in this issue. |
Go Modules have been introduced in September 2018 with the intention to make them a default thing for the entire Ecosystem. Now it's April 2019. What am I missing? And vgo was introduced even earlier. |
What you are missing is captured in golang/go#24661 as well as in golang/go#27571 Let me re-iterate. Language support for Go in editors have always been dependent on community Go tools like in this case With gopls the language server from Google getting traction, we will be able to stop depending on the multiple tool set and use just the language server very soon. |
VS Code: 1.33.1
vscode-go: 0.10.1-beta.1
Rename task took around 5 min with 100% CPU utilization with a result:
The text was updated successfully, but these errors were encountered: