From 0b4d8fb505e22de0742082d22c04b3f47c025108 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Thu, 7 Apr 2011 22:50:48 -0400 Subject: [PATCH] fix collision with name 'state' in 'console-project' --- main/Console.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/Console.scala b/main/Console.scala index 2b06be653..8599d1e96 100644 --- a/main/Console.scala +++ b/main/Console.scala @@ -31,7 +31,7 @@ object Console def sbt(state: State, extra: String)(implicit log: Logger) { val extracted = Project extract state - val bindings = ("state" -> state) :: ("extracted" -> extracted ) :: Nil + val bindings = ("currentState" -> state) :: ("extracted" -> extracted ) :: Nil val unit = extracted.currentUnit val compiler = Compiler.compilers(state.configuration, log).scalac val imports = Load.getImports(unit.unit) ++ Load.importAll(bindings.map(_._1))