SBT: view class file summary during compilation?
Asked Answered
J

2

8

Trying to see exactly what source files are being compiled during full & incremental builds.

As it stands I see a summary a la "X number of Scala and Y number of Java files" being compiled, which is great, but exactly which files are being compiled?

set logLevel in Global := Level.Debug

does nothing useful (that I can see)

set scalacOptions in Compile += "-print"

is more helpful, it prints out the internet...I mean, tons of generated code, which does contain the class names, just not so easy to sift through.

Basically looking to get a summary of files being compiled.

Perhaps there's a non-verbose option to the above scalac flag?

Johnjohna answered 31/7, 2012 at 3:13 Comment(0)
T
2

I don't know of any options that would permit that, but it would probably be the simplest compiler plugin you could write (http://www.scala-lang.org/node/140).

Thinking answered 31/7, 2012 at 7:52 Comment(0)
C
2

Try -verbose. This shows which classes are being parsed,

[ERROR] [parsing Tapnon.scala]
[ERROR] [parsing Tapnonics.scala]
[ERROR] [parsing package.scala]
[ERROR] [parsing EvenlyScorer.scala]
Costotomy answered 19/5, 2016 at 12:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.