code
EACCESS: permission denied when trying to spawn a language server in neovim
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
Most Liked
dimitarvp
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.
arcanemachine
This is the path to my elixir-ls executable: ~/.local/lib/elixir-ls/language_server.sh
Maybe that will help. I’m guessing that maybe the path you pasted is just the path to the directory?
dimitarvp
Shouldn’t you also supply the filename, not only the path?







