41

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.

Ivan
  • 63,011
  • 101
  • 250
  • 382

1 Answers1

58

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

eliasah
  • 39,588
  • 11
  • 124
  • 154
Ivan
  • 63,011
  • 101
  • 250
  • 382