Skip to content
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

Bug: Elixir sources not found (checking in /home/build/elixir). #123

Closed
fbuys opened this issue Jun 13, 2023 · 3 comments
Closed

Bug: Elixir sources not found (checking in /home/build/elixir). #123

fbuys opened this issue Jun 13, 2023 · 3 comments

Comments

@fbuys
Copy link

fbuys commented Jun 13, 2023

Hello!

I am desperately trying to get elixirls to work with my neovim lsp setup.

I already have LspZero, Mason, and Null-lsp configured.

But part of my lsp setup include:

lsp.skip_server_setup({ 'elixirls' })

require("elixir").setup({
  credo = {enable = true},
  elixirls = {enable = true},
})

The credo server seems to attached without a problem, but I don't see the elixirls server attached.

:LspLog

[INFO][2023-06-14 01:39:15] ...lsp/handlers.lua:489	"Elixir sources not found (checking in /home/build/elixir). Code navigation to Elixir modules disabled."
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	"Runtime termin"
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	"ating during boot ({badarg,[{io,put_chars,[standard_error,[_]],[{_},{_},{_}]},{Elixir.Kernel.CLI,exec_fun,2,[{_},{_}]},{Elixir.Kernel.CLI,run,1,[{_},{_}]}"
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	",{init,start_em,1,[]},{init,do_boot,3,[]}]})\r\n"
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	"\r\nCras"
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	"h dump is being written to: e"
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	"rl_crash.dump..."
[ERROR][2023-06-14 01:39:17] .../vim/lsp/rpc.lua:733	"rpc"	"/Users/fbuys/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.14.6/1.14.5-26/language_server.sh"	"stderr"	"done\r\n"
@mhanberg
Copy link
Collaborator

mhanberg commented Jun 14, 2023

You're running OTP 26 which has an open bug in stdio.

That's the crash you're seeing.

The warning just says you can't jump to the definitions of elixir source files because you installed a precompiled version of elixir.

@mhanberg
Copy link
Collaborator

elixir-lsp/elixir-ls#886

@mhanberg mhanberg closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2023
@fbuys
Copy link
Author

fbuys commented Jun 14, 2023

Thank you so much @mhanberg 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants