summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala16
1 files changed, 4 insertions, 12 deletions
diff --git a/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala b/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala
index b454d793..f42a3055 100644
--- a/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala
+++ b/scalaplugin/src/main/scala/mill/scalaplugin/ScalaModule.scala
@@ -64,7 +64,7 @@ object ScalaModule{
val consoleAppender = MainAppender.defaultScreen(console)
val l = LogExchange.logger("Hello")
LogExchange.unbindLoggerAppenders("Hello")
- LogExchange.bindLoggerAppenders("Hello", (consoleAppender -> sbt.util.Level.Warn) :: Nil)
+ LogExchange.bindLoggerAppenders("Hello", (consoleAppender -> sbt.util.Level.Info) :: Nil)
l
}
val compiler = new IncrementalCompilerImpl
@@ -77,18 +77,11 @@ object ScalaModule{
val extra = Array(InterfaceUtil.t2(("key", "value")))
var lastCompiledUnits: Set[String] = Set.empty
- val progress = new CompileProgress {
+ val ignoreProgress = new CompileProgress {
override def advance(current: Int, total: Int): Boolean = true
-
- override def startUnit(phase: String, unitPath: String): Unit = {
- println(unitPath)
- lastCompiledUnits += unitPath
- }
+ override def startUnit(phase: String, unitPath: String): Unit = ()
}
- println("Running Compile")
- println(outputPath/'zinc)
- println(exists(outputPath/'zinc))
val zincFile = (outputPath/'zinc).toIO
val store = FileAnalysisStore.binary(zincFile)
val classesDir = (outputPath / 'classes).toIO
@@ -110,12 +103,11 @@ object ScalaModule{
compilerCache,
IncOptions.of(),
reporter,
- Some(progress),
+ Some(ignoreProgress),
extra
),
pr = {
val prev = store.get()
- println(prev)
PreviousResult.of(prev.map(_.getAnalysis), prev.map(_.getMiniSetup))
}
),