steps
- Create a minimal sbt build with a program that prints some output
// build.sbt
scalaVersion := "2.13.7"
// src/main/scala/example
package example
object HelloWorld extends App {
for (_ <- 1 to 10) {
println(s"Hello world!")
Thread.sleep(1000)
}
}
- Start sbtn shell:
$ sbtn
- Run
bgRun
The program starts in the background of sbt server.
problem
The logs are not forwarded to the client that run the bgRun task.
sbt:example> bgRun
[info] running HelloWorld
Hello world!
[success] Total time: 0 s, completed Mar 16, 2022 10:26:30 AM
sbt:sbt-client-input>
expectation
The logs should continue being forwarded to the client:

steps
$ sbtnbgRunThe program starts in the background of sbt server.
problem
The logs are not forwarded to the client that run the
bgRuntask.expectation
The logs should continue being forwarded to the client:
