Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

High CPU nad power usage on Windows 11 #100

Open
DominikaK opened this issue Aug 17, 2022 · 5 comments
Open

High CPU nad power usage on Windows 11 #100

DominikaK opened this issue Aug 17, 2022 · 5 comments

Comments

@DominikaK
Copy link

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

@apupier
Copy link
Contributor

apupier commented Sep 8, 2022

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

@DominikaK
Copy link
Author

It is: vale version 2.20.0.

@apupier
Copy link
Contributor

apupier commented Sep 9, 2022

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)

@DominikaK
Copy link
Author

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.

@universemaster
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants