-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High CPU usage from Vetur extension #789
Comments
Downgrading the vetur extension to v0.11.7 seems to fix the issue for me. |
@erodri How to downgrade extension? |
I have the same issue. It uses up to 200% CPU on my Mac OS X High Sierra 10.13.4. @squalsoft You can go to the releases in the github project and donwload the vsix file. Then you can manually install it in the market place. See the instructions underneath. But somehow v0.11.8 is also broken. @erodri Where did you get the v0.11.7 vsix file? |
This happened for me after both upgrading Vetur and taking the latest VSCode Insiders. I disabled the extension and reenabled it, seemed to kick it back into normal mode. Not sure if it's just a matter of time before it heats up again. |
Same issue for me. 😢 |
@squalsoft @prine I used this tutorial to build the link for the previous vetur extension builds. For example, the link to v0.11.7 is this: https://octref.gallery.vsassets.io/_apis/public/gallery/publisher/octref/extension/vetur/0.11.7/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage Save it with .vsix extension and install as explained in the tutorial (I just installed it over the current 0.12.1 version). |
i am not sure but i think its related to #774 i think the watcher watches also whole node_modules folder or something like that |
Same issue here. I have downgraded to previous version (0.11.7 as @erodri suggested). And it became normal. Hope this issue will be solved asap. |
The suggestion from @erodri works for me. By the way, don't forget to disable auto updating extension, otherwise the vetur will be updated to 0.12.1 again. |
Same issue. After downgrade to 0.11.7 , cpu usage calm down. |
This is probably caused by chokidar file watcher. Can any one give a reproduction code repo? It will be very helpful. |
I have this issue also. |
Installing 0.11.7 as suggested works for me too. |
Having the same problem since today. @cvharris disable-enable solution did not work for me. |
I am having the same issue. If I type,
It is showing that CPU usage is over 150% |
Same issue for me. |
Downgrade is only temporary, when VS reload or reopen, before downgrade, must set |
I cannot reproduce the problem in https://github.com/bailicangdu/vue2-elm Can any one give me a GitHub repository where the problem appear. Or your environment if you can reproduce the problem in https://github.com/bailicangdu/vue2-elm ? |
The Problem has nothing to do with the code you are writing, but the latest releases of VSCode and Vetur... Environment for me is: MacOS 10.13.4 |
Same here !!! Cpu usage is going crazy since this release. |
Use VSCoe to open vue2-ele with the latest releases of vetur is fine..... but when i open any .vue file of our private project,cpu usage over 200% 😢。。 |
@CinKon @luozhihua Can you reproduce the problem in https://github.com/bailicangdu/vue2-elm ? |
Nope, with vue-elm everything is fine... |
Same for me on MacOS Sierra 10.13.4 + Vetur 0.12.2 = high CPU consumption. |
I had this as well when I installed 0.12.1 directly from github (before it was updated in VS Code extensions). Love the fact that it fixes the Go to definition feature. Hate to see it causing this problem. |
Didn't handle chokidar correctly in 0.12.2. 0.12.3 completely removes chokidar so the problem should be gone. If not, then that's not the file watcher causing the problem. Would appreciate it if you can confirm 0.12.3 is working for you. |
@octref Fixed~! Thanks for your working~ |
Worked for me also with 0.12.3. |
Yeah that seems to have done it. 👍 |
Yep, 0.12.3 seems to fix the high CPU usage, thanks! |
Yeah, looks like it's fixed with 0.12.3 👌 |
Yeah! It's ok. 0.12.3 Fixes this issue. |
Yay, what a relief!!! Thx. |
0.12.5 still has high CPU Usage 👎 |
@LuisHCK Would be helpful if you can provide the sample project you are working on, and info such as system spec, OS, node version etc. |
@octref my CPU went full load while working under this condition: |
@rabelais88 Try Help -> Process Explorer, and see if Vetur is the issue: |
@octref it appears that problem has unfortunately returned. |
@patzick Please open a new issue. Also, is it possible for me to get a repro case? Can you modify https://github.com/octref/veturpack to repro the issue? |
@octref problem has disappeared after two days, i don't know why but it's okey now. Thank you, vetur is great! :) |
I am having same problem, Code Helper running 100% using
I get the following:
vetur version 0.14.2 |
same here vetur 0.14.5 |
Not sure if this is the same bug or a different one as this Issue is mostly affecting OSX users. After having VS-Code running for 1-2 Days, the reaction time as i type gets pretty bad. Sometimes it takes 1-2 seconds till the pressed character appears in VS-Code. I noticed high CPU usage of Vetur as i type, mostly peaking at 90% CPU. |
@marvinside That's actually a problem of VS Code, not Vetur. I created an issue on VS Code side: microsoft/vscode#68322. It would be great if you can follow up with some more details so we can fix it. Thanks! |
@octref I'm not sure if this is the problem, as the bootstrap-fork process has not gotten any CPU usage while VS-Code slows down. |
VSCode is literally unusable for Vue project in macOS because of this bug. |
@vividvilla Create new issue following https://github.com/vuejs/vetur/blob/master/.github/PERF_ISSUE.md. |
@octref Just a stab in the dark: Could this be related to the problems which precipitated ForkTsCheckerWebpackPlugin? Obviously this issue is unrelated to webpack, but we ended up switching to the I don't know the specifics or internals of VSCode's file watching service, or of Vetur itself, but as the project gained more files (especially more entry points/"close to root level" components) the compilation time (and type checking) took longer and longer because the compilation of the SFCs were spawning a huge redundancy in file reads. That seems to also be the case (in my experience) with this Vetur issue, as it doesn't have nearly the same slowdown in a small project as it does in a moderately larger project. Could it be the same root cause? And would a similar strategy (forking the type checking service or other module-resolving services into their own thread/process so they can take advantage of caching between runs) possibly mitigate the issue? |
@octref 😍 👍 |
Info
Problem
CPU usage is excessively high from the "Code Helper" process. Grabbing the pid from running
top
and usingps aux | grep 1234
, I can see the process is pointing to vetur extension.I see someone else has reported something similar here: microsoft/vscode#49883
The text was updated successfully, but these errors were encountered: