Skip to content

bgRun does not forward logs to the client #6842

@adpi2

Description

@adpi2

steps

  1. 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)
  }
}
  1. Start sbtn shell: $ sbtn
  2. 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:
bgRun

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions