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.
1 parent e54e2eb commit 3de597bCopy full SHA for 3de597b
apps/language_server/lib/language_server/build.ex
@@ -80,9 +80,18 @@ defmodule ElixirLS.LanguageServer.Build do
80
81
for {app, path} <- Mix.Project.deps_paths() do
82
child_module =
83
- Mix.Project.in_project(app, path, [build_path: build_path], fn mix_project ->
84
- mix_project
85
- end)
+ try do
+ Mix.Project.in_project(app, path, [build_path: build_path], fn mix_project ->
+ mix_project
86
+ end)
87
+ rescue
88
+ e ->
89
+ message = Exception.message(e)
90
+
91
+ Logger.warning(
92
+ "Unable to prune mix project module for #{app}: #{inspect(e.__struct__)} #{message} #{Exception.format(:error, e, __STACKTRACE__)}"
93
+ )
94
+ end
95
96
if child_module do
97
purge_module(child_module)
0 commit comments