intellij doesn't detect errors until file is manually selected
Hello,
I have a maven project with a parent pom and submodules. Intellij works great, however, it doesn't report error automatically like in netbeans.
By example, using Netbeans, if I delete a class or a package, all files importing this deleted class (or package) will be highlighted in the project view (marked as containing an error). It is very usefull I can jump to the errors quickly.
Using Intellij, it detects nothing until I manually open the file containings the error... Moreover, the error is then highlighted in the file and in the project view (but for this file only, not the other files importing a wrong package) but not reported in the Problems view.
I did try everything, like rebuild the project (it stop on first error detected so it doesn't works), reimport maven etc. It won't detect the error in the files until I open the file.
Do you have to configure something ?
Please sign in to leave a comment.
So it looks like these errors are automatically detected only when I use eclipse compiler. If I use javac compiler, I have to manually select each file containing the error to have it detected.
You need to enable automatic compilation and make sure that compiler is trying to actually build these files. It may fail before reaching the files you expect to be reported. Eclipse compiler has more errors threshold by default.
See https://stackoverflow.com/a/17799671/104891 and https://stackoverflow.com/questions/19364949/how-to-view-the-list-of-compile-errors-in-intellij.