Skip to content

Commit 591ef67

Browse files
committed
unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT
Fixes #1195
1 parent 701bb3a commit 591ef67

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

scripts/debug_adapter.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ IF EXIST "%APPDATA%\elixir_ls\setup.bat" (
77
IF %ERRORLEVEL% NEQ 0 EXIT 1
88
)
99

10+
@REM Unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT as it pollutes stdout
11+
@REM breaking LSP protocol. See https://github.com/elixir-lsp/elixir-ls/issues/1195
12+
SET MIX_OS_DEPS_COMPILE_PARTITION_COUNT=
13+
1014
SET MIX_ENV=prod
1115
@REM pipe echo to avoid passing protocol messages to quiet install command
1216
@REM intercept stdout

scripts/elixir_check.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ IF EXIST "%APPDATA%\elixir_ls\setup.bat" (
77
IF %ERRORLEVEL% NEQ 0 EXIT 1
88
)
99

10+
@REM Unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT as it pollutes stdout
11+
@REM breaking LSP protocol. See https://github.com/elixir-lsp/elixir-ls/issues/1195
12+
SET MIX_OS_DEPS_COMPILE_PARTITION_COUNT=
13+
1014
SET MIX_ENV=prod
1115
@REM pipe echo to avoid passing protocol messages to quiet install command
1216
@REM intercept stdout and stderr

scripts/language_server.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ IF EXIST "%APPDATA%\elixir_ls\setup.bat" (
77
IF %ERRORLEVEL% NEQ 0 EXIT 1
88
)
99

10+
@REM Unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT as it pollutes stdout
11+
@REM breaking LSP protocol. See https://github.com/elixir-lsp/elixir-ls/issues/1195
12+
SET MIX_OS_DEPS_COMPILE_PARTITION_COUNT=
13+
1014
SET MIX_ENV=prod
1115
@REM pipe echo to avoid passing protocol messages to quiet install command
1216
@REM intercept stdout and stderr

scripts/launch.fish

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ else
110110
set scriptpath $ELS_INSTALL_PREFIX
111111
end
112112

113+
# Unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT as it pollutes stdout
114+
# breaking LSP protocol. See https://github.com/elixir-lsp/elixir-ls/issues/1195
115+
set -e MIX_OS_DEPS_COMPILE_PARTITION_COUNT
116+
113117
set -x MIX_ENV prod
114118
# Mix.install prints to stdout and reads from stdin
115119
# we need to make sure it doesn't interfere with LSP/DAP

scripts/launch.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ else
134134
SCRIPTPATH=${ELS_INSTALL_PREFIX}
135135
fi
136136

137+
# Unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT as it pollutes stdout
138+
# breaking LSP protocol. See https://github.com/elixir-lsp/elixir-ls/issues/1195
139+
unset MIX_OS_DEPS_COMPILE_PARTITION_COUNT
140+
137141
export MIX_ENV=prod
138142
# Mix.install prints to stdout and reads from stdin
139143
# we need to make sure it doesn't interfere with LSP/DAP

0 commit comments

Comments
 (0)