Skip to content

Commit 81738dc

Browse files
committed
warn on windows and OTP 26
1 parent 0079131 commit 81738dc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

apps/elixir_ls_utils/lib/minimum_version.ex

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ defmodule ElixirLS.Utils.MinimumVersion do
66
{:error,
77
"Erlang OTP releases below 22 are not supported (Currently running OTP #{otp_release})"}
88
else
9-
:ok
9+
if otp_release == 26 and is_windows() do
10+
{:error, "Erlang OTP 26 has critical bugs on Windows. Please downgrade to OTP 25"}
11+
else
12+
:ok
13+
end
1014
end
1115
end
1216

@@ -23,4 +27,11 @@ defmodule ElixirLS.Utils.MinimumVersion do
2327
"Elixir versions below 1.12.0 are not supported. (Currently running v#{System.version()})"}
2428
end
2529
end
30+
31+
def is_windows() do
32+
case :os.type() do
33+
{:win32, _} -> true
34+
_ -> false
35+
end
36+
end
2637
end

0 commit comments

Comments
 (0)