Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see all the warnings in SBT 0.11?

I get notified about "unchecked" warnings when I compile my Scala project with SBT 0.11, but I can't see the warnings themselves.

What I see is

[warn] there were 8 unchecked warnings; re-run with -unchecked for details [warn] one warning found 

What exactly am I to "re-run with -unchecked" and how to do that? Neither compile -unchecked, nor compile unchecked, nor xsbt -unchecked seem to work.

like image 219
Ivan Avatar asked Feb 23 '12 15:02

Ivan


1 Answers

I've found the answer here.

The solution is to add

scalacOptions ++= Seq("-unchecked", "-deprecation") 

to the project's build.sbt file.

It can also take "-feature" as an option and works with sbt 0.13

like image 150
Ivan Avatar answered Oct 02 '22 14:10

Ivan