We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d9e8e6 + 8f03870 commit de6e9c4Copy full SHA for de6e9c4
apps/language_server/lib/language_server.ex
@@ -143,8 +143,9 @@ defmodule ElixirLS.LanguageServer do
143
enum_ex_path = Enum.module_info()[:compile][:source]
144
145
elixir_sources_available =
146
- unless File.exists?(enum_ex_path, [:raw]) do
147
- dir = Path.join(enum_ex_path, "../../../..") |> Path.expand()
+ # handle possible nil from deterministic build of elixir
+ unless enum_ex_path && File.exists?(enum_ex_path, [:raw]) do
148
+ dir = (enum_ex_path || ~c"/") |> Path.join("../../../..") |> Path.expand()
149
150
Logger.notice(
151
"Elixir sources not found (checking in #{dir}). Code navigation to Elixir modules disabled."
0 commit comments