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"

Home Page:https://elixir-lsp.github.io/elixir-ls/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version v0.18.0 not found when attempting to start LS

aviato opened this issue · comments

Precheck

✅ Do a quick search and make sure the issue has not yet been reported

✅ Do not use the issues tracker for guidance, questions or support (try Elixir Forum, Stack Overflow, Slack, etc. instead)

❌ If using a client other than VS Code, please try VSCode's "ElixirLS: Elixir support and debugger" extension. Does it reproduce your failure?
(I attempted this step but I don't see the same error)

Environment

  • Elixir & Erlang versions (elixir --version): Elixir 1.12.3 (compiled with Erlang/OTP 22)
  • Elixir Language Server version: v0.18.0
  • Operating system: Ubuntu
  • Editor or IDE name (e.g. Emacs/VSCode): NeoVim
  • Editor Plugin/LSP Client name and version: Using nvim-lspconfig with elixir-ls

Current behavior

When I attempt to start my language server I am seeing an error that seems to be related to a version mismatch. This change might be causing the issue since a Release has not been created for v0.18.0. When I change the VERSION file to 0.17.10 the error goes away.

VSCode Output:

[Info  - 8:43:15 AM] Started ElixirLS v0.17.10
[Info  - 8:43:15 AM] Running in /home/aviato/repos/elixir-projects
[Info  - 8:43:15 AM] ElixirLS built with elixir "1.12.3" on OTP "22"
[Info  - 8:43:15 AM] Running on elixir "1.12.3 (compiled with Erlang/OTP 22)" on OTP "22"

Local Language Server Output:

Installing ElixirLS release v0.18.0
Running in /home/aviato/elixir-ls-release
* Getting elixir_ls (https://github.com/elixir-lsp/elixir-ls.git - v0.18.0)
** (Mix.Error) Command "git --git-dir=.git checkout --quiet v0.18.0" failed with reason: error: pathspec 'v0.18.0' did not match any file(s) known to git
  • Follow the build instructions in the README of this repo (master branch, latest changes)
  • Attempt to run ./language_server.sh
  • See error

Expected behavior

Should find correct (tagged) version

Thanks for all your hard work on this project and happy holidays!

0.18 is not released yet

@lukaszsamson thanks for the quick response! Should the version in the manifest file be bumped to v0.18.0 on master before the Release has been created?

Following the build steps in the README currently throws the error I reported, and the LS fails to start.

master branch is for development. If you want to use it please follow contributing guidelines. Otherwise you should checkout a tagged release commit