mirror of https://github.com/sbt/sbt.git
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:
parent
1d16ca9510
commit
7ce978a5f2
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue