You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/language_server/lib/language_server/cli.ex
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ defmodule ElixirLS.LanguageServer.CLI do
38
38
"Running on elixir #{versions.current_elixir_version} on OTP #{versions.current_otp_version}"
39
39
)
40
40
41
+
check_otp_doc_chunks()
42
+
41
43
Launch.limit_num_schedulers()
42
44
43
45
Mix.shell(ElixirLS.LanguageServer.MixShell)
@@ -82,4 +84,11 @@ defmodule ElixirLS.LanguageServer.CLI do
82
84
raisemessage
83
85
end
84
86
end
87
+
88
+
defcheck_otp_doc_chunks()do
89
+
ifmatch?({:error,_},Code.fetch_docs(:erlang))do
90
+
JsonRpc.show_message(:warning,"OTP compiled without EEP48 documentation chunks")
91
+
Logger.warn("OTP compiled without EEP48 documentation chunks. Language features for erlang modules will run in limited mode. Please reinstall or rebuild OTP with approperiate flags.")
0 commit comments