Skip to content

Commit

Permalink
Disable dialyzer and show warning if running on Elixir 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeBecker committed Aug 5, 2018
1 parent 7deedf4 commit 3ae8dec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/language_server/lib/language_server/dialyzer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ defmodule ElixirLS.LanguageServer.Dialyzer do
"Dialyzer is disabled because core Elixir modules are missing debug info. " <>
"You may need to recompile Elixir with Erlang >= OTP 20"}

Version.match?(System.version(), "1.7.0") ->
{:error,
"Dialyzer is disabled in Elixir v1.7.0 due to a bug in Dialyzer. " <>
"Upgrade Elixir to >= v1.7.1 to enable"}

true ->
:ok
end
Expand Down

0 comments on commit 3ae8dec

Please sign in to comment.