File tree Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Expand file tree Collapse file tree 5 files changed +20
-0
lines changed Original file line number Diff line number Diff 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+
1014SET MIX_ENV = prod
1115@ REM pipe echo to avoid passing protocol messages to quiet install command
1216@ REM intercept stdout
Original file line number Diff line number Diff 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+
1014SET MIX_ENV = prod
1115@ REM pipe echo to avoid passing protocol messages to quiet install command
1216@ REM intercept stdout and stderr
Original file line number Diff line number Diff 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+
1014SET MIX_ENV = prod
1115@ REM pipe echo to avoid passing protocol messages to quiet install command
1216@ REM intercept stdout and stderr
Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ else
110110 set scriptpath $ELS_INSTALL_PREFIX
111111end
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+
113117set -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
Original file line number Diff line number Diff line change @@ -134,6 +134,10 @@ else
134134 SCRIPTPATH=${ELS_INSTALL_PREFIX}
135135fi
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+
137141export 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
You can’t perform that action at this time.
0 commit comments