Skip to content

Commit b30cf71

Browse files
committed
Fix version check and improve message
cleanup readme OTP < 20 are not supported since 996682e3873e56b8305c2265db165ea819fcfe8f
1 parent 8b1d2a0 commit b30cf71

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This fork started when [Jake Becker's repository](https://github.com/JakeBecker/
99
## Features
1010

1111
- Debugger support
12-
- Automatic, incremental Dialyzer analysis (requires Erlang OTP 20)
12+
- Automatic, incremental Dialyzer analysis
1313
- Automatic inline suggestion of @specs based on Dialyzer's inferred success typings
1414
- Inline reporting of build warnings and errors
1515
- Documentation lookup on hover
@@ -77,7 +77,7 @@ Starting in Elixir 1.6, Mix compilers adhere to the [Mix.Task.Compiler](https://
7777

7878
## Dialyzer integration
7979

80-
If you're using Erlang >= OTP 20, ElixirLS will automatically analyze your project with Dialyzer after each successful build. It maintains a "manifest" file in `.elixir_ls/dialyzer_manifest` that stores the results of the analysis. The initial analysis for a project can take a few minutes, but after that's completed, modules are re-analyzed only if necessary, so subsequent analyses are typically very fast -- often less than a second. It also looks at your modules' abstract code to determine whether they reference any modules that haven't been analyzed and includes them automatically.
80+
ElixirLS will automatically analyze your project with Dialyzer after each successful build. It maintains a "manifest" file in `.elixir_ls/dialyzer_manifest` that stores the results of the analysis. The initial analysis for a project can take a few minutes, but after that's completed, modules are re-analyzed only if necessary, so subsequent analyses are typically very fast -- often less than a second. It also looks at your modules' abstract code to determine whether they reference any modules that haven't been analyzed and includes them automatically.
8181

8282
You can control which warnings are shown using the `elixirLS.dialyzerWarnOpts` setting in your project or IDE's `settings.json`. To disable it completely, set `elixirLS.dialyzerEnabled` to false.
8383

apps/language_server/lib/language_server/server.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,10 @@ defmodule ElixirLS.LanguageServer.Server do
605605

606606
otp_release = String.to_integer(System.otp_release())
607607

608-
if otp_release < 19 do
608+
if otp_release < 20 do
609609
JsonRpc.show_message(
610610
:info,
611-
"Upgrade Erlang to version OTP 20 for debugging support (Currently OTP #{otp_release})"
611+
"Erlang OTP releases below 20 are not supported (Currently OTP #{otp_release})"
612612
)
613613
end
614614

0 commit comments

Comments
 (0)