When I try to spawn elixirls language server using the following config:
require('lazy').setup({
local servers={
elixirls = {cmd = {"/home/user1/elixir-ls/elixir-ls"}},
}
})
I get this error:
/usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning language server with cmd: `{ "/home/user1/elixir-ls/elixir-ls/" }` failed with error message: /usr/share/nvim/
runtime/lua/vim/_system.lua:244: EACCES: permission denied
Edit:
I changed the path to ~/home/user1/elixir-ls/elixir-ls/release/language_server.sh
and it worked.
Now I am facing another problem. A process called beam.smp is consuming 500% of my CPU, I am pretty sure it’s related to elixir-ls
Yeah, I changed the path to ~/home/user1/elixir-ls/elixir-ls/release/language_server.sh and it worked.
Now I am facing another problem. A process called beam.smp is consuming 500% of my CPU, I am pretty sure it’s related to elixir-ls
Well, by the specs your CPU should have 4 physical cores, 8 virtual ones. top seems to display the usage per thread (virtual cores), so think about it 572 out of 800, idiotic measure but it is what it is.
I don’t understand what are you concerns, yes the LS uses in the range of 70% of your computing power, this is normal as elixir-ls is pretty resource demanding in itself, as it uses dialyzer under the hood.
It’s very likely doing initial Dialyzer indexing of your project (i.e. the typespecs). Don’t get alarmed. I’ve seen it take an hour in bigger projects. Just let it finish. It only happens once per project and per unique Erlang version.