Skip to content

Commit

Permalink
Check whether Dialyzer is installed (fixes elixir-editors#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeBecker committed Oct 15, 2018
1 parent 92b10a0 commit 508900d
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 @@ -32,6 +32,11 @@ defmodule ElixirLS.LanguageServer.Dialyzer do
{:error,
"Dialyzer integration requires Erlang OTP 20 or higher (Currently OTP #{otp_release})"}

not Code.ensure_loaded?(:dialyzer) ->
{:error,
"The current Erlang installation does not include Dialyzer. It may be available as a " <>
"separate package."}

not dialyzable?(System) ->
{:error,
"Dialyzer is disabled because core Elixir modules are missing debug info. " <>
Expand Down

0 comments on commit 508900d

Please sign in to comment.