Skip to content
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 when edit rust files! #8

Open
LinArcX opened this issue Jan 25, 2019 · 6 comments
Open

High cpu usage when edit rust files! #8

LinArcX opened this issue Jan 25, 2019 · 6 comments

Comments

@LinArcX
Copy link
Contributor

LinArcX commented Jan 25, 2019

Hi. i follow the instructions and successfully installed coc-rls plugin in neovim. there is an issue that when i open a .rs file, my cpu usage go to 80% and i can hear my Fan sounds that working hard!
This issues occur only if i edit rust files.

@chemzqm
Copy link
Member

chemzqm commented Jan 25, 2019

Which process cause high CPU, the node process or rust process?

@chemzqm
Copy link
Member

chemzqm commented Jan 25, 2019

Checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel output channel to see what the server is doing.

@LinArcX
Copy link
Contributor Author

LinArcX commented Jan 25, 2019

@chemzqm rls process get the high cpu.
also i run:
:CocCommand workspace.showOutput
but nothing show me.

@chemzqm
Copy link
Member

chemzqm commented Jan 25, 2019

Have no idea with that, maybe try upgrade your rls.

@idMysteries
Copy link

idMysteries commented Feb 12, 2019

When I edit the .rs file, the rls loads the CPU by up to 30% for one second (on the first run). And then a maximum of 20% less than a second.. On average, the load is 2-14% (0-1% after 5 minutes 👍) when editing and 9-22% when save (or when exiting insert mode).
This is not a permanent load. Maximum 2 seconds when save (maybe thanks to SSD), then load 0%

@doronbehar
Copy link

I've experienced this issue as well when I installed rls manually according to their instructions. After I read that coc-rls can install rls for you, I ran rustup component remove rls rust-analysis rust-src and tried launching Neovim afterwards so coc-rls will prompt me to install it by itself. I don't know why and perhaps there were other factors in my setup but you should try to do the same.

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

No branches or pull requests

4 participants