vale-vscode icon indicating copy to clipboard operation
vale-vscode copied to clipboard

High CPU nad power usage on Windows 11

Open DominikaK opened this issue 3 years ago • 5 comments

In version v0.15.2, running on Windows 11, VS Code with this extension causes extensive CPU and power usage.

For example, after about 15-20 minutes or work, with less than 5 files open, the usage is as follows: vale_open

Additionally, even after exiting VS Code, high usage remains until I manually kill the vale process:

vale_after_exit

This issue had not been occurring in earlier versions of the plugin (on the same hardware/software setup), even with many more open tabs and more issues found by vale.

VS Code version: 1.70.1 Extension version: 0.15.2

DominikaK avatar Aug 17 '22 06:08 DominikaK

Can you precise the version of vale binary that you have installed locally?

apupier avatar Sep 08 '22 12:09 apupier

It is: vale version 2.20.0.

DominikaK avatar Sep 09 '22 06:09 DominikaK

After a night sleep, it makes me think like some vale commands started by VS Code extension are blocked in a loop.

What could be useful is:

  • find the command-line/parameters used to launch these vale program. We might be able to reproduce then on command-line outside of VS Code. We might be able to find some specific (combination of) files to validate to reproduce the issue
  • a thread dump of the vale programs (for which I do not know how to do yet as it is written in go)

apupier avatar Sep 09 '22 06:09 apupier

After some more investigation, this may be caused by Vale itself, not the plugin, as even with CLI linting a single 400-line markdown file is taking over a minute.

DominikaK avatar Oct 06 '22 12:10 DominikaK

Hi @DominikaK.

I have a similar issue (linked above) but on MacOS.

Can I ask you to try using v2.15.4. Does this fix the problem?

universemaster avatar Feb 14 '23 09:02 universemaster