Skip to content

Commit

Permalink
warn on windows and OTP 26
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Nov 9, 2023
1 parent 0079131 commit 81738dc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion apps/elixir_ls_utils/lib/minimum_version.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ defmodule ElixirLS.Utils.MinimumVersion do
{:error,
"Erlang OTP releases below 22 are not supported (Currently running OTP #{otp_release})"}
else
:ok
if otp_release == 26 and is_windows() do
{:error, "Erlang OTP 26 has critical bugs on Windows. Please downgrade to OTP 25"}
else
:ok
end
end
end

Expand All @@ -23,4 +27,11 @@ defmodule ElixirLS.Utils.MinimumVersion do
"Elixir versions below 1.12.0 are not supported. (Currently running v#{System.version()})"}
end
end

def is_windows() do
case :os.type() do
{:win32, _} -> true
_ -> false
end
end
end

0 comments on commit 81738dc

Please sign in to comment.