JustDanyul JustDanyul - 1 year ago 200
Scala Question

Scala warnings, IntelliJ and compiler flags

I'm currently giving the IntelliJ Scala plugin a spin and one thing is bugging me a wee-bit. I get 3 warnings when compiling.

Warning: scala: Recompiling 4 files
Warning: scala:
Warning: scala: there were 1 deprecation warnings; re-run with -deprecation for details


Why does it give me warnings that files are being recompiled? Can that be turned off? And finally, what's with the empty warning? :D

Answer Source

In IntelliJ 14:

  1. Bring up preferences Intellij IDEA > Preferences or cmd + ,
  2. Look up Scala Compiler. Alternatively, it's under Build, Execution, Deployment > Compiler > Scala Compiler
  3. Check the option for Deprecation warnings

Rebuild your project!

Screenshot of preferences to enable deprecation flag.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download