sbt/main
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
..
actions/src Set currentRun and currentUnit in Eval 2014-08-13 23:32:14 +02:00
command/src/main/scala/sbt Remove line of dead code. 2014-05-19 06:17:44 -07:00
settings/src Deprecate parseScopedKey 2014-08-05 11:28:28 -04:00
src Merge pull request #1491 from sbt/fix/528 2014-08-11 07:51:33 -04:00
NOTICE fix component name in main notice 2010-09-21 22:00:11 -04:00