Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to immediately see compile errors in project tree of IntelliJ Idea?

People also ask

How do I see compilation errors 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.

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.

How do I get rid of compilation error in IntelliJ?

Run/Debug Configurations -> Your Application -> Configuration -> Before launch: Build, Activate tool window -> remove the "Build" line with the Minus symbol. That works! :) Thank You Vic!

What kind of errors are mostly detected at compile time?

Most frequent Compile-Time errors are: Missing Parenthesis (}) Printing the value of variable without declaring it. Missing semicolon (terminator)


As of IntelliJ 12 there's an option to automatically build your project upon source changes. In "Settings" --> Build, Execution, Deployment --> "Compiler" check the checkbox "Build project automatically". This will immediately show any compile errors in the project tree.


I did some further searches in the web about this feature. At the end it seems that exactly this feature is not available. There are some discussions about this topic where also some (in my point of view) workarounds are mentioned. The most helpful discussion I found here.


You can access all the compile problems like so:

  • open the "Project" explorer (usually docked on the left)
  • click the "Project" dropdown in the upper left corner
  • select "Problems" under "Scopes"

You'll see a tree of files and problems. Also, on the bottom toolbar, you should see a tab called "Problems" which lists everything as well. It's not as easy to use as the Eclipse "Problems" view, but it's close.

I'm on version 12.1.4, not sure what version this feature first came in, though.