sbt, the interactive build tool
Go to file
Grzegorz Kossakowski 3fa6b87319 Set currentRun and currentUnit in Eval
First of all, we revert changes to Eval made in
a9cdd96152. That was a work-around
for problem with broken positions set on some trees. The rest of
the commit describes a fix.

Scala compiler's Global has `currentRun` method which is supposed to
return an instance of Run currently in use. Sbt's Eval which wraps
Global would create an instance of Run but not register it in Global.
Similarly, Eval would create an instance of `CompilationUnit` but not
set it in Run.

This would result in some silent failures like assigning broken positions
to parsed trees even if parser *has* received an instance of compilation
unit. See https://issues.scala-lang.org/browse/SI-8794 for details.

We fix the issue by subclassing Global and making it possible to set
current Run instance externally. Then we use this capability to set a run
instance right before we call compiler phases. We also make sure that
current run has current compilation assigned to it.

Fixes #1181
Fixes #1501
Fixes #1523
2014-08-13 23:32:14 +02:00
cache Scalariforming test code 2014-05-07 11:52:23 -04:00
compile Change "Not a simple type" warning to log message 2014-07-30 07:45:03 -06:00
interface Add hashing of public names defined in a source file. 2013-12-04 01:34:18 +01:00
ivy Merge pull request #1491 from sbt/fix/528 2014-08-11 07:51:33 -04:00
launch Update misc tests and doc to reflect HTTPS access for Maven Central 2014-08-08 17:07:44 -04:00
licenses move remaining pieces of sbt subproject to sbt_pending and fix notices 2010-09-21 21:55:50 -04:00
main Set currentRun and currentUnit in Eval 2014-08-13 23:32:14 +02:00
notes Merge pull request #1491 from sbt/fix/528 2014-08-11 07:51:33 -04:00
project scalariform project/Docs.scala 2014-08-08 17:07:44 -04:00
run Scalariforming test code 2014-05-07 11:52:23 -04:00
sbt Merge pull request #1490 from sbt/wip/1484 2014-08-04 11:50:47 -04:00
scripted Fixed scripted newer command 2014-06-23 15:12:34 +10:00
src/main/conscript Remove old website in favor of new sbt/website project. 2014-06-02 12:56:28 -04:00
tasks Disable flaky test, as it's timeout based. 2014-08-08 14:28:33 -04:00
testing Fixes #1306 - Attempt to turn test suite names into better filenames. 2014-08-01 17:14:00 -04:00
util Implements eviction warning stories. #1200 2014-07-27 12:26:12 -04:00
.gitattributes Added .gitattributes file. 2013-04-25 00:06:51 +08:00
.gitignore support defining Projects in .sbt files 2012-12-09 20:40:41 -05:00
.travis.yml Bump expected 2.11 module versions so we can compile with 2.11 2014-05-14 19:08:05 -04:00
CONTRIBUTING.md Fix contributing.md 2014-07-31 04:37:45 -04:00
LICENSE Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
NOTICE Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
README.md Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
api.specification Macro def aware recompilation. 2012-03-04 17:35:51 +01:00
scripted.specification New scripted test framework 2009-11-09 09:34:52 -05:00

README.md

sbt

sbt is a build tool for Scala, Java, and more. For general documentation, see http://www.scala-sbt.org/.

Issues and Pull Requests

Please read CONTRIBUTING carefully before opening a GitHub Issue. The short version: try StackOverflow and sbt-dev. Don't open an Issue.

sbt 0.13

This is the 0.13.x series of sbt.

  • Setup: Describes getting started with the latest binary release.
  • FAQ: Explains how to get help and more.
  • Google Code: hosts sbt 0.7.7 and earlier versions

license

See LICENSE.