Skip to content

Commit f1cbb95

Browse files
committed
Fix Mix.install crash when config_path is nil
1 parent e91336d commit f1cbb95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/installer.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,10 @@ defmodule ElixirLS.Mix do
370370
File.cd!(install_project_dir, fn ->
371371
# This step needs to be mirrored in mix deps.partition
372372
Application.put_all_env(config, persistent: true)
373-
Mix.Task.rerun("loadconfig")
373+
374+
if config_path do
375+
Mix.Task.rerun("loadconfig")
376+
end
374377

375378
cond do
376379
external_lockfile ->

0 commit comments

Comments
 (0)