Open
Description
How are you using the lua-language-server?
Other
Which OS are you using?
Linux
What is the issue affecting?
Other
Expected Behaviour
Using lua-language-server shouldn't consume all available inotify resources.
Actual Behaviour
After opening a project no other application can use inotify, because recursive inotify can try watching too many files (over 125,000 in my case, but depends on the limit).
Reproduction steps
- Create a dummy config file (
return {}
) and place it somewhere with many files (e.g. in home directory). - Specify path to that config via
--configpath
like in--configpath=$HOME/lsp.lua
. - Open some workspace with that configuration (using
lsp.vim
in Vim9 here, but client shouldn't matter). - Try using
inotifywait some/file
and observeFailed to watch some/file; upper limit on inotify watches reached!
, which shouldn't happen.
Additional Notes
Watch probably shouldn't be recursive when used in https://github.com/sumneko/lua-language-server/blob/d33debdaa7d8748beef0e0365f0314222006058e/script/provider/provider.lua#L34
Log File
No response