-
-
Notifications
You must be signed in to change notification settings - Fork 383
Description
Describe the bug
When opening a lua file with neovim, lua-language-server
starts slowly eating RAM until it takes all 16 GB of my RAM and freezes my machine. It takes around 20-30 minutes. During this time, ~/.cache/nvim/lsp.log
and /tmp/lua-language-server.XXX/log/*
stay silent. This happens even when I don't interact with my neovim instance at all. Reproducible both with and without --preview
.
Another strange thing is that lua-language-server
is constantly taking 100% of one of my CPU cores.
This does NOT happen when running lua-language-server outside of neovim with the same command as lspconfig does.
To Reproduce
Steps to reproduce the behavior:
- Open lua file
- Observe 100% CPU usage for one of the cores.
- Wait for 15 minutes
- Machine is out of RAM
Expected behavior
RAM should not be exhausted like that. Also, CPU usage should not max out at all times.
Environment (please complete the following information):
- Arch Linux
- Client: neovim
Provide logs