Skip to content

Commit c9b095f

Browse files
authored
Fix usage of private API Mix.Dep.clear_cached/0 (#238)
Mix.Project.clear_deps_cache() is a supported API (as of 1.7.0) and it just calls `Mix.Dep.clear_cached/0` so the code is effectively identical (but now supported!) For reference it was added in: elixir-lang/elixir#7248
1 parent 457e16d commit c9b095f

File tree

1 file changed

+1
-2
lines changed
  • apps/language_server/lib/language_server

1 file changed

+1
-2
lines changed

apps/language_server/lib/language_server/build.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ defmodule ElixirLS.LanguageServer.Build do
1313
IO.puts("Compiling with Mix env #{Mix.env()}")
1414

1515
prev_deps = cached_deps()
16-
# FIXME: Private API
17-
Mix.Dep.clear_cached()
16+
:ok = Mix.Project.clear_deps_cache()
1817

1918
case reload_project() do
2019
{:ok, mixfile_diagnostics} ->

0 commit comments

Comments
 (0)