Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Intellij Idea to display compilation warnings?

I'm working with Intellij Idea 10 and Java 6 JDK Update 7. When I run Build --> Rebuild Project command, and the (javac) compilation generates warnings, Idea doesn't display what those warnings exactly are in the Messages view. I just see an "Information: XX warnings" node, but no way to expand it to see the actual warnings. Or I just see a message "Compilation completed successfully with XX warnings" on the status bar. For errors, Idea displays the error information (error message, filename, line number etc.) automatically. How can I get it to work similarly with warnings?

(For the record, I've already tried using additional command line parameters such as -Xlint, but it does not make a difference.)

like image 817
Tommi Avatar asked Jan 20 '11 09:01

Tommi


People also ask

How do I show warnings in IntelliJ?

If you do build->rebuild project in IntelliJ, the messages tab (usually at the bottom) should show all the warnings. They should not disappear anywhere even after compiler has finished. If they do, check you have not enabled the "hide warnings" icon on the messages tab.

How do I see the compilation error in IntelliJ?

Show all errors in one place:The Problems tool window appears if the Make project automatically option is enabled in the Compiler settings. It shows a list of problems that were detected on project compilation. Use the Eclipse compiler: This is actually bundled in IntelliJ.

Why is IntelliJ not showing compilation errors?

In "Settings" --> Build, Execution, Deployment --> "Compiler" check the checkbox "Build project automatically". This will immediately show any compile errors in the project tree.

How do I highlight errors in IntelliJ?

Configure error highlightingPress Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | General. You can also configure highlighting from inspection settings: go to Editor | Inspections, click any enabled inspection, and from the Highlighting in editor list, select Edit Highlighting.


1 Answers

Make sure that "Hide Warnings" option is disabled in the Messages panel on the left:

Hide Warnings

like image 96
CrazyCoder Avatar answered Sep 26 '22 02:09

CrazyCoder