Skip to content

Commit 27c2d85

Browse files
committed
fix startup
1 parent 7f7ba8a commit 27c2d85

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/elixir_ls_utils/lib/launch.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ defmodule ElixirLS.Utils.Launch do
33
@compiled_otp_version System.otp_release()
44

55
def start_mix do
6+
Mix.start()
67
# when running via mix install script mix starts and stops hex
78
# we need to make sure it's started
8-
Hex.start()
9-
Mix.start()
9+
if function_exported?(Hex, :start, 0) do
10+
Hex.start()
11+
end
12+
1013
# FIXME: Private API
1114
Mix.Local.append_archives()
1215
# FIXME: Private API

0 commit comments

Comments
 (0)