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

Bump ElixirLS default version #143

Closed
kevinkirkup opened this issue Jul 19, 2023 · 1 comment · Fixed by #145
Closed

Bump ElixirLS default version #143

kevinkirkup opened this issue Jul 19, 2023 · 1 comment · Fixed by #145

Comments

@kevinkirkup
Copy link

The latest version is failing to install elixir-ls with OTP 26.
Looks like we need to be pointing to elixir-ls:0.15.1

Related issue: elixir-lsp/elixir-ls#886

[ERROR][2023-07-19 14:52:43] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	"running /Users/kevinkirkup/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/launch.sh\nLooking for ASDF install in /Users/kevinkirkup/.asdf/asdf.sh\n"
[ERROR][2023-07-19 14:52:46] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	"Runtime terminating during boo"
[ERROR][2023-07-19 14:52:46] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	"t ({badarg,[{io,put_chars,[standard_error,[_]],[{_},{_},{_}]},{Elixir.Kernel.CLI,exec_fun,2"
[ERROR][2023-07-19 14:52:46] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	",[{_},{_}]},{Elixir.Kernel.CLI,run,1,[{_},{_}"
[ERROR][2023-07-19 14:52:46] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	"]},{elixir,start_cli,0,[{_},{_}]},{init,start_em,1,[]},{init,do_boot,3,[]}]})\r\n"
[ERROR][2023-07-19 14:52:46] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	"\r\nCrash dump is being written to: er"
[ERROR][2023-07-19 14:52:46] .../vim/lsp/rpc.lua:734	"rpc"	"/User/username/.cache/nvim/elixir-tools.nvim/installs/elixir-lsp/elixir-ls/tags_v0.15.0/1.15.2-26/language_server.sh"	"stderr"	"l_crash.dump..."
@kevinkirkup
Copy link
Author

kevinkirkup commented Jul 19, 2023

To resolve, you can specify the explicit tag version in the elixir-ls section of the configuration:

local elixir = require("elixir")
local elixirls = require("elixir.elixirls")

elixir.setup {
  nextls = {...},
  credo = {...},
  elixirls = {
    tag = "v0.15.1", -- defaults to nil, mutually exclusive with the `branch` option
    settings = elixirls.settings {...},
  }
}

@mhanberg mhanberg changed the title Elixir-ls install is failing Bump ElixirLS default version Jul 19, 2023
mhanberg added a commit that referenced this issue Jul 20, 2023
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

Successfully merging a pull request may close this issue.

1 participant