elixir-lsp / elixir-ls

A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol"
https://elixir-lsp.github.io/elixir-ls/
Apache License 2.0
1.5k stars 198 forks source link

`elixir-ls` does not start because of "incomplete" installation #1104

Closed cassepipe closed 4 months ago

cassepipe commented 4 months ago

Precheck

Seems related :

Environment

Elixir 1.16.2 (compiled with Erlang/OTP 26)

* Elixir Language Server version:   `0.22.0` (latest version at the time of writing)
* Operating system: Fedora 40 (all packages up to date)
* Editor: LunarVim Release branch (Neovim distribution) 
* Editor Plugin/LSP Client name and version:
  `elixir-ls` package from `Mason` plugin that maintains its own registry [https://mason-registry.dev/registry/list#elixir-ls]
   (latest version at the time of writing)

## Description 

`elixir-ls` does not start because of "incomplete" installation. (link)[ https://github.com/elixir-lsp/elixir-ls/blob/master/guides/incomplete-installation.md] given in error message is a 404.
A bit of research in github issues and elixir foroum suggests the issue is erlang OTP version 26 :

## Steps

1. Install Lunarvim :

LV_BRANCH='release-1.4/neovim-0.9' bash <(curl -s https://raw.githubusercontent.com/LunarVim/LunarVim/release-1.4/neovim-0.9/utils/installer/install.sh)

2. Run `lvim`
3. Press `Escape`
4. Type `:LspInstall elxirls` then Enter
5. Press `Escape` again
6. Type `:LvimCacheReset`

You should see the following error and "LSP Inactive" in the status bar :

LSP[elixirls] Unable to start ElixirLS due to an incomplete erlang installation. See https://github.com/elixir-lsp/elixir-ls/blob/master/guides/incomplete-installation.md for guidance.

cassepipe commented 4 months ago

Naively thought that since elixir was installed with dnf erlang woudl be at the latest version version available in the packages but it turns out that it isn't the case

Installing the erlang package explicitly with

sudo dnf install erlang

solves it

lukaszsamson commented 4 months ago

The link should not 404

cassepipe commented 4 months ago

It doesn't 404 anymore. Maybe opening the link from Lunarvim was corrupting the link ?

lukaszsamson commented 4 months ago

I confirm the link is correct