Skip to content

Commit 30a0c7e

Browse files
committed
warn on unofficial elixir version
1 parent 8acdf42 commit 30a0c7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/elixir_ls_utils/lib/minimum_version.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ defmodule ElixirLS.Utils.MinimumVersion do
1212

1313
def check_elixir_version do
1414
if Version.match?(System.version(), ">= 1.13.0") do
15-
:ok
15+
if Regex.match?(~r/-/, System.version()) do
16+
{:error,
17+
"Only official elixir releases are supported. (Currently running v#{System.version()})"}
18+
else
19+
:ok
20+
end
1621
else
1722
{:error,
1823
"Elixir versions below 1.13.0 are not supported. (Currently running v#{System.version()})"}

0 commit comments

Comments
 (0)