Skip to content

Commit 81576a2

Browse files
authored
Merge pull request #1265 from kevinam99/startup-crash-fix
Fix installer crash on Elixir 1.18.x when config_path is nil
2 parents e91336d + f1cbb95 commit 81576a2

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)