mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
Fix stdout freshness issue
**Problem** When ForkOptions outputStrategy is None, Run code currently tries to use LoggedOutput, which buffers the output when connectInput is true, which effectively breaks the experience. **Solution** This stops falling back to LoggedOutput when connectInput is true.
This commit is contained in:
@@ -58,7 +58,7 @@ class ForkRun(config: ForkOptions) extends ScalaRun {
|
||||
}
|
||||
|
||||
private def configLogged(log: Logger): ForkOptions = {
|
||||
if (config.outputStrategy.isDefined) config
|
||||
if (config.outputStrategy.isDefined || config.connectInput) config
|
||||
else config.withOutputStrategy(OutputStrategy.LoggedOutput(log))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user