-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
[Neovim] Heavy CPU usage by fseventsd
daemon and also LSP not working
#1878
Comments
Seems same issue with mine (#1872). You could check it for your reference.
It is because |
Thank you so much for your advice, @rockyzhang24. Indeed, if you comment out the lines of code belonging to Just in case, I made 2 log files:
On your advice, I cloned the latest version of the main branch and tested it on commit 6c422b0. In this case, I also made log files, you never know they will come in handy:
|
My pleasure. You could try if the newest version 3.6.10 has fixed this issue. It works like a charm on my side. With the whole neovim runtime set to |
Perfect! Indeed, with version 3.6.10 everything works flawlessly. Thanks again for your help and explanations, you helped me a lot. |
How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Type Checking, Completion, Diagnostics/Syntax Checking, Other
Expected Behaviour
My understanding is that the
fseventsd
daemon should run within 1%. Below is how it works in the background without runninglua-language-server.
The LSP server should work flawlessly: displaying diagnostic data, text completion, type checking.
Actual Behaviour
For some unknown reason, having recently upgraded to version
lua-language-server
3.6.7, and later to version 3.6.8, thefseventsd
daemon began to heavily load the processor, as well aslua-language-server
. As far as I understand, there is intensive data logging. Because of all this, the laptop is incredibly noisy and heated.At the same time,
lua-language-server
does not work in any way: it does not show diagnostics, autocompletion does not work, and there is no type checking.In order to stop processes, you must first stop
lua-language-server
and thenfseventsd
, otherwisefseventsd
will start working at full capacity again.Reproduction steps
As already mentioned, it all started, sort of like with version
lua-language-server
3.6+, lua has to work infrequently, but I can say for sure that this happened to me on versions 3.6.7 and 3.6.8.I tried to solve the problem by reinstalling
lua-language-server
, but as you can see, it didn't help much:brew uninstall lua-language-server
andbrew install lua-language-server
:MasonUninstall lua-language-server
and:MasonInstall lua-language-server
Setting
lua-language-server
in the configuration filelspconfig.lua
is as follows:Additional Notes
I have a MacBook Air 13 2019' with the following settings:
Neovim version:
Log File
I checked the performance of LSP servers using the built-in
:checkhealth
utility, the result was saved in the file/Users/dex/.local/state/nvim/lsp.log
:The text was updated successfully, but these errors were encountered: