Reputation: 7297
I'm trying out Intellij on a mixed Java/Scala project. Build is failing with errors like this:
Error: scala: /home/kevin/ij/backend/srctest/com/example/package/DoStuffTest.java:35: warning: [deprecation] OldStuffList in com.example.package has been deprecated
I'm not able to find any setting related to treating warning as errors. I'd like these to be reported as warnings (because indeed, they are warnings), but not prevent the build from completing.
Upvotes: 8
Views: 2521
Reputation: 15549
In the scala compiler settings, check that there is no -Xfatal-warnings
This option makes scalac treat warning as error.
Note that I had this problem after a colleague added this option in the build.sbt
of an sbt project. Intellij then added it to its scala compiler settings.
Upvotes: 3
Reputation: 1700
If you hit alt-enter on the highlighted error, it should at least give you a dropdown option called "Disable inspection" which should let you turn that off for that instance or all Deprecated errors. This doesn't really solve your problem, but it might at least get you past it.
Upvotes: 1