-
Notifications
You must be signed in to change notification settings - Fork 645
CPU overuse due to go doc processes #2276
Comments
I get this all the time as well, I tried updating all the Go tools using the install/update command but no luck (Sierra), you pretty much can't type without it spawning dozens of these |
Good to know someone else has experienced it - it's really making work hard. As you start typing, you can see the linting and suggestions start to slow down to a crawl until they end up not working at all until the CPU has recovered!! |
Thanks for reporting @jpincas This is most likely due to the auto-completion widget now showing docs for which the Install our latest beta version of this extension to be able to disable the docs feature and see if that helps. Add the below in your settings after installing the beta version
The first 3 are default flags we send to |
Thanks Ramya - have installed the beta version and added those settings. Will report back after a days work. |
OK, I can already report that it is constantly asking me install the latest version of |
Should these processes have some kind of timeout? In my case it often (always?) shows I tried updating to the beta as well, still get dozens when typing as normal.
|
@tj Did you also add the "--exclude-docs" option to your config as suggested by @ramya-rao-a above? That seems to solve it, but of course it disables the intelligent autocomplete, which makes writing code suck!! @ramya-rao-a Is there any timeline for a proper fix on this? |
strange, |
@tj are you sure your user setting is not getting overriden by workspace settings? |
If not then close any running |
double checked the workspace settings but mine are empty, I tried |
I ran
It might be safe to close this issue since
|
That is a little weird @tj... Why would node_modules have any affect on We do have a cancellation token in place for the auto-completion feature. When a previous request is no longer valid (say because you continued typing and now are on a different word), then cancellation token for the previous request is cancelled by VS Code. And we do listen to this cancellation and kill the |
I think |
Sorry for the dumb question - but when we talk about 'showing the docs', are we talking about the intelligent completion suggestions, or something else? |
Not a dumb question at all @jpincas Generally, "showing the docs" could either refer to the docs that accompany the suggestion widget or what you see when you hover over symbols. But in this case, we are referring to the former. |
I've been battling this same problem for the last 6 months or so. @ramya-rao-a I can confirm excluding docs has worked for me, although there's the obvious drawbacks. The node modules things has affected a whole lot of Go tools over the years. I even complained about it in 2016 for It would be great to have the tools ignoring |
The |
Auto-updating doesn't get disabled once you are on beta. That only happens if you opt out using the setting No, there were no changes in 0.9.2 regarding the From your screenshot it looks like the language server is taking up the CPU and not the Regarding the problem with the language server, I would suggest to disable that. In a few weeks the team at Google will be ready with a their official language server which should perform better |
Similar to the above, I'm on the latest beta (I think) 0.11.8-beta.2 and my config looks like this
|
An alternative to this work-around is to use the I have also filed #3044 to track supporting correct cancellation for all subprocesses, so let's continue the discussion there. The correct fix would really be to limit the number of |
Duplicate of #3044 |
I know this has been logged in multiple issues before, but they are all closed as far as I can see. Common to those reports, the extension is driving the CPUs in my MacBook Pro through the roof, causing it to overheat and the fans to spin like crazy.
Go : Update / Reinstall tools
"go.docsTool": "gogetdoc"
and"go.useLanguageServer": true
to my settings and reloaded, as suggested in other threads.I attach a screenshot of the process viewer mid-spike, that pretty clearly shows that its the
doc
process causing the problem.Please help if you can - I code Go all day every day and this is making my life really, really hard right now. Sometimes the spikes cause the cursor to skip to another pane, and when I look up, I've written code in the middle of another file!
The text was updated successfully, but these errors were encountered: