Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT: view class file summary during compilation?

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?

like image 892
virtualeyes Avatar asked Jul 31 '12 03:07

virtualeyes


2 Answers

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).

like image 96
thoredge Avatar answered Nov 03 '22 20:11

thoredge


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]
like image 2
Janek Bogucki Avatar answered Nov 03 '22 19:11

Janek Bogucki