Skip to content

Commit 85cfc56

Browse files
committed
Reorder startup sequence
1 parent 910f7b1 commit 85cfc56

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
### Unreleased
22

3+
### v0.14.1: 14 April 2023
4+
5+
#### Fixes
6+
7+
- Reorder startup sequence to avert mix crash
8+
39
### v0.14.0: 14 April 2023
410

511
#### Improvements

apps/elixir_ls_utils/lib/launch.ex

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

55
def start_mix do
6-
# reset env and target if it is set
7-
Mix.env(:dev)
8-
Mix.target(:host)
9-
System.put_env([{"MIX_ENV", nil}, {"MIX_TARGET", nil}])
10-
116
Mix.start()
127
Mix.Local.append_archives()
138
Mix.Local.append_paths()
@@ -18,6 +13,11 @@ defmodule ElixirLS.Utils.Launch do
1813
Hex.start()
1914
end
2015

16+
# reset env and target if it is set
17+
Mix.env(:dev)
18+
Mix.target(:host)
19+
System.put_env([{"MIX_ENV", nil}, {"MIX_TARGET", nil}])
20+
2121
load_dot_config()
2222

2323
# as of 1.14 mix supports two environment variables MIX_QUIET and MIX_DEBUG

0 commit comments

Comments
 (0)