sbt, the interactive build tool
Go to file
Eugene Yokota 3b7e6974c3 Fixes stacktrace of backgroun run
Ref https://github.com/sbt/sbt/issues/4121

sbt already has the facility to trim stack traces. This sets the trace level of the background run, which fixes the upper half of the `run` stacktrace.

```
[error] (run-main-0) java.lang.Exception
[error] java.lang.Exception
[error] 	at Hello$.delayedEndpoint$Hello$1(Hello.scala:5)
[error] 	at Hello$delayedInit$body.apply(Hello.scala:1)
[error] 	at scala.Function0.apply$mcV$sp(Function0.scala:34)
[error] 	at scala.Function0.apply$mcV$sp$(Function0.scala:34)
[error] 	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
[error] 	at scala.App.$anonfun$main$1$adapted(App.scala:76)
[error] 	at scala.collection.immutable.List.foreach(List.scala:389)
[error] 	at scala.App.main(App.scala:76)
[error] 	at scala.App.main$(App.scala:74)
[error] 	at Hello$.main(Hello.scala:1)
[error] 	at Hello.main(Hello.scala)
[error] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] 	at java.lang.reflect.Method.invoke(Method.java:498)
[error] java.lang.RuntimeException: Nonzero exit code: 1
[error] 	at sbt.Run$.executeTrapExit(Run.scala:127)
[error] 	at sbt.Run.run(Run.scala:77)
[error] 	at sbt.Defaults$.$anonfun$bgRunTask$5(Defaults.scala:1254)
[error] 	at sbt.Defaults$.$anonfun$bgRunTask$5$adapted(Defaults.scala:1249)
[error] 	at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:377)
[error] 	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error] 	at scala.util.Try$.apply(Try.scala:209)
[error] 	at sbt.internal.BackgroundThreadPool$BackgroundRunnable.run(DefaultBackgroundJobService.scala:299)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] (Compile / run) Nonzero exit code: 1
```

The bottom half requires a similar fix to the foreground log.
2018-06-27 06:26:38 -04:00
core-macros/src/main/scala/sbt/internal/util/appmacro Run scalafmt & test:scalafmt 2018-04-24 16:12:10 +01:00
internal Run scalafmt & test:scalafmt 2018-04-24 16:12:10 +01:00
launch Adds sbt.boot.lock sysprop to opt-out 2018-02-08 13:02:39 +00:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
main Fixes stacktrace of backgroun run 2018-06-27 06:26:38 -04:00
main-actions/src Merge branch '1.1.x' into wip/merge-1.1.x 2018-06-12 23:33:47 -04:00
main-command/src/main addPluginSbtFile command 2018-06-18 01:50:36 -04:00
main-settings/src Merge branch '1.1.x' into wip/merge-1.1.x 2018-04-29 14:31:30 -04:00
notes Adding minimal support for commands in inspect 2018-06-22 09:04:56 -04:00
project IO 1.2.0-M2 2018-06-25 17:02:32 -04:00
protocol/src/main Run scalafmt & test:scalafmt 2018-04-24 16:12:10 +01:00
run Run scalafmt & test:scalafmt 2018-04-24 16:12:10 +01:00
sbt/src Fixes scripted test 2018-06-25 18:42:06 -04:00
scripted Add alternative scripted filenames 2018-06-19 14:59:04 -04:00
src/main/conscript 1.1.1 launchconfig 2018-02-08 13:08:21 -05:00
tasks Merge branch '1.1.x' into wip/merge-1.1.x 2018-04-29 14:31:30 -04:00
tasks-standard Run scalafmt & test:scalafmt 2018-04-24 16:12:10 +01:00
testing Fix CTRL-C exception 2018-06-22 05:04:30 -04:00
vscode-sbt-scala Fix VS Code extension startup 2018-04-30 22:50:23 -04:00
.appveyor.yml improve Windows build 2018-02-07 18:16:21 -05:00
.gitattributes remove gittatributes, assume core.autocrlf=false 2018-06-26 17:38:05 +03:00
.gitignore Re-write toolboxClasspath to use sbt-buildinfo 2018-02-23 13:20:19 +00:00
.java-version Configure JVM 1.8 in .java-version 2016-10-07 08:48:23 -05:00
.sbtopts Use .sbtopts to increase the RAM 2018-06-25 19:40:15 -04:00
.scalafmt.conf Improve code clarity with danglingParentheses = true 2018-04-24 16:09:49 +01:00
.travis.yml Add doc task to travis-ci 2018-06-19 13:27:50 -04:00
CONTRIBUTING.md Use 1.x branch 2018-06-19 10:47:34 -04:00
ISSUE_TEMPLATE.md Restore references to CONTRIBUTING, with checkbox 2018-04-25 17:08:41 +01:00
LICENSE Add, configure & enforce file headers 2017-10-05 09:03:40 +01:00
NOTICE Add, configure & enforce file headers 2017-10-05 09:03:40 +01:00
PROFILING.md Move PROFILING out of CONTRIBUTING 2018-04-25 14:50:17 +01:00
PULL_REQUEST_TEMPLATE.md Restore references to CONTRIBUTING, with checkbox 2018-04-25 17:08:41 +01:00
README.md update README. s/1.0.x/1.x/ 2018-02-13 10:00:50 +09:00
SUPPORT.md Split support into SUPPORT.md 2018-04-25 14:55:09 +01:00
build.sbt Split server unit test on its own 2018-06-18 04:43:11 -04:00
reset.sh 1.0.3-SNAPSHOT 2017-09-16 15:52:58 -04:00
sbt-allsources.sh Bump underlying modules to latest 2017-03-23 12:41:24 -04:00
server.md setting query is "sbt/setting" 2017-10-03 01:45:06 -04:00

README.md

Gitter Chat

sbt

sbt is a build tool for Scala, Java, and more.

For general documentation, see http://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.io module.
  • sbt/util hosts a collection of internally used modules.
  • sbt/librarymanagement hosts sbt.librarymanagement module that wraps Ivy.
  • sbt/zinc hosts Zinc, an incremental compiler for Scala.
  • sbt/sbt, this repository hosts modules that implements the build tool.
  • 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.