File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
apps/debugger/lib/debugger Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,22 @@ defmodule ElixirLS.Debugger.CLI do
8
8
Application . ensure_all_started ( :debugger , :permanent )
9
9
IO . puts ( "Started ElixirLS debugger v#{ Launch . debugger_version ( ) } " )
10
10
Launch . print_versions ( )
11
+ warn_if_unsupported_version ( )
11
12
WireProtocol . stream_packets ( & Server . receive_packet / 1 )
12
13
end
14
+
15
+ # Debugging does not work on Elixir 1.10.0-1.10.2:
16
+ # https://github.com/elixir-lsp/elixir-ls/issues/158
17
+ defp warn_if_unsupported_version do
18
+ elixir_version = System . version ( )
19
+
20
+ if Version . match? ( elixir_version , ">= 1.10.0" ) && Version . match? ( elixir_version , "< 1.10.3" ) do
21
+ message =
22
+ "WARNING: Debugging is not supported on Elixir #{ elixir_version } . Please upgrade" <>
23
+ " to at least 1.10.3\n " <>
24
+ "more info: https://github.com/elixir-lsp/elixir-ls/issues/158"
25
+
26
+ Output . print_err ( message )
27
+ end
28
+ end
13
29
end
You can’t perform that action at this time.
0 commit comments