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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With