File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 20
20
otp : 22.x
21
21
- elixir : 1.12.x
22
22
otp : 23.x
23
- - elixir : 1.12.x
24
- otp : 24.x
25
23
- elixir : 1.13.x
26
24
otp : 22.x
27
25
- elixir : 1.13.x
Original file line number Diff line number Diff line change @@ -12,7 +12,15 @@ defmodule ElixirLS.Utils.MinimumVersion do
12
12
13
13
def check_elixir_version do
14
14
if Version . match? ( System . version ( ) , ">= 1.12.3" ) do
15
- :ok
15
+ otp_release = String . to_integer ( System . otp_release ( ) )
16
+
17
+ if Version . match? ( System . version ( ) , "< 1.13.0" ) and otp_release == 24 do
18
+ # see https://github.com/elixir-lang/elixir/pull/11158#issuecomment-981583298
19
+ { :error ,
20
+ "Elixir 1.12 is not supported on OTP 24. (Currently running v#{ System . version ( ) } on OTP #{ otp_release } )" }
21
+ else
22
+ :ok
23
+ end
16
24
else
17
25
{ :error ,
18
26
"Elixir versions below 1.12.3 are not supported. (Currently running v#{ System . version ( ) } )" }
You can’t perform that action at this time.
0 commit comments