From e0cb747e7663374187396399ae4341ddfde7016c Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 15 Aug 2023 14:56:18 +0800 Subject: [PATCH] . --- readme.adoc | 3 ++- runner/src/mill/runner/MillMain.scala | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/readme.adoc b/readme.adoc index 6b8154b898d..8d072bd5163 100644 --- a/readme.adoc +++ b/readme.adoc @@ -331,13 +331,14 @@ _Changes since {prev-version}:_ analysis to see which targets depend on the code that was changed. See https://github.com/com-lihaoyi/mill/pull/2417[#2417] for more details - * Fix redirection of stdout stream to stderr when using `show` https://github.com/com-lihaoyi/mill/pull/2689[#2689] * Fix line numbers in errors for scripts starting with leading comments or whitespace https://github.com/com-lihaoyi/mill/pull/2686[#2686] +* Fix issue with BSP protocol crashing due to use of wrong evaluator + https://github.com/com-lihaoyi/mill/pull/2692[#2692] _For details refer to {link-milestone}/{milestone}?closed=1[milestone {milestone-name}] diff --git a/runner/src/mill/runner/MillMain.scala b/runner/src/mill/runner/MillMain.scala index 4c2ff9578c8..624e8875e75 100644 --- a/runner/src/mill/runner/MillMain.scala +++ b/runner/src/mill/runner/MillMain.scala @@ -256,7 +256,13 @@ object MillMain { enableTicker = enableTicker.getOrElse(mainInteractive), infoColor = colors.info, errorColor = colors.error, - systemStreams = streams, + systemStreams = + if (config.silent.value) new SystemStreams( + new java.io.PrintStream(mill.api.DummyOutputStream), + new java.io.PrintStream(mill.api.DummyOutputStream), + streams.in + ) + else streams, debugEnabled = config.debugLog.value, context = "", printLoggerState