mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +02:00
9b1e644be169122dd00d295b3712fcce57f7563c
**Problem** I'm seeing NPE in some test-related tests like tests/junit: [info] [error] java.lang.NullPointerException: Null output stream [info] [error] at java.io.PrintStream.requireNonNull(PrintStream.java:79) [info] [error] at java.io.PrintStream.<init>(PrintStream.java:151) [info] [error] at java.io.PrintStream.<init>(PrintStream.java:135) [info] [error] at sbt.internal.WorkerProxy.inputStream$lzyINIT1(WorkerExchange.scala:69) [info] [error] at sbt.internal.WorkerProxy.inputStream(WorkerExchange.scala:69) [info] [error] at sbt.internal.WorkerProxy.println(WorkerExchange.scala:77) [info] [error] at sbt.ForkTests$.mainTestTask$$anonfun$1(ForkTests.scala:160) This is likely coming from ProcessBuilder#run not immediately processing the passed in processIO. **Solution** This uses Promise to wait for the processIO to be processed.
sbt
sbt is a build tool for Scala, Java, and more.
For general documentation, see https://www.scala-sbt.org/.
sbt 1.x
This is the 1.x series of sbt. The source code of sbt is split across several GitHub repositories, including this one.
- sbt/io hosts
sbt.iomodule. - sbt/zinc hosts Zinc, an incremental compiler for Scala.
- sbt/sbt, this repository hosts modules that implements the build tool.
Other links
- Setup: Describes getting started with the latest binary release.
- FAQ: Explains how to get help and more.
- sbt/sbt-zero-seven: hosts sbt 0.7.7 and earlier versions
Issues and Pull Requests
Please read CONTRIBUTING carefully before opening a GitHub Issue.
The short version: try searching or asking on StackOverflow.
license
See LICENSE.
Languages
Scala
94.5%
Java
3.1%
Shell
1.1%
Batchfile
0.9%
Roff
0.2%
Other
0.1%