Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get IntelliJ to display the Scala compilation deprecation warnings

In IntelliJ (version: 2016.3.1, Scala Plugin version: 2016.3.5), I have a Scala 2.12 (which implies Java 1.8 being required) project where I am selecting "Build/Rebuild Project". I am receiving the following output in the "Messages" windows:

Warning:scalac: there were four deprecation warnings (since 2.12.0); re-run with -deprecation for details

What steps must I take to configure my project such that I can actually see the content of the 4 warnings?

I found another question for IntelliJ 14 which showed how to turn on deprecation warnings, but didn't indicate how to surface the actual content of the deprecation warnings themselves. Any guidance on this would be greatly appreciated.

like image 523
chaotic3quilibrium Avatar asked Dec 15 '16 22:12

chaotic3quilibrium


People also ask

How do I add Scala support to IntelliJ?

To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA.

How do I change the Scala version in IntelliJ?

 In most cases your project JDK is not compatible with Scala or sbt version, try to change the Scala Compile Server SDK. Press Ctrl+Alt+S to open Settings/Preferences dialog. From the options on the left, select Build, Execution, Deployment | Compiler | Scala | Scala Compiler Server.

What is Scala plugin in IntelliJ?

The Scala plugin extends IntelliJ IDEA's toolset with support for Scala, SBT, Scala. js, Hocon, and Play Framework. Support for Scala, SBT and Hocon is available for free in IntelliJ IDEA Community Edition, while support for Play Framework and Scala. js is available only in IntelliJ IDEA Ultimate.


1 Answers

As of the latest Intellij version at this time, you can also open Settings -> Build, Execution, Deployment -> Compiler -> Scala Compiler, and in Additional compiler options:, append -deprecation.

like image 150
atjua Avatar answered Sep 29 '22 13:09

atjua