Auto errors detection in IntelliJ IDEA
Java file is not analyzed since it's located outside of the source root. You need to either relocate the file or reconfigure your content roots so that it resides under the folder configured as the Sources root.
Sources root is marked in blue in the project view. Here is the example of the properly configured project (notice the class icon is different than on your screenshot):
IntelliJ - show where errors are
IntelliJ IDEA detects errors and warnings in the current file on the fly (unless Power Save Mode is activated in the File
menu).
Errors in other files and in the project view will be shown after Build
| Make
and listed in the Messages tool window.
For Bazel users: Project errors will show on Bazel Problems tool window after running Compile Project
(Ctrl/Cmd+F9)
To navigate between errors use Navigate
| Next Highlighted Error
(F2) / Previous Highlighted Error
(Shift+F2).
Error Stripe Mark color can be changed here:
IntelliJ: Disable warnings/errors for a single module
I tried to expand Eric's answer but it was rejected for arbitrary reasons, so I'm writing my own to try and clarify some more for anyone else that runs into this problem since I hate bureaucracy. Adding it as an answer will allow me to provide some visual aids:
NNGINETest
has errors that are reported in building. Eric's answer is correct in that we can exclude it, but the problem is that the console is still spammed with error reports upon building when I right clicked the project and marked it for exluding that way. I fixed it by excluding it via the menu in File -> Settings -> Build, Execution, Deployment -> Compiler -> Excludes
You'll want to probably also make sure that the "Recusively" checkboxes are checked for modules you want to exclude.
I don't really know what the difference is here between this and using the right click menu option (I couldn't find anything in the IntelliJ manual about it either but maybe someone can provide a link in the comments), but this successfully prevented NNGINETest from littering the console during building:
Additionally, using the Excludes menu rather than the directory marking for the module allows it to still appear in the Project module list rather than disappearing. An "x" will appear by excluded folders. This is pretty useful in my opinion:
Hope this helps!
Intellij show intention actions [Alt + Enter] doesn't work
The solution was: missing groovy-all-2.4.6.jar file in my /home/user/idea-IU-162.2228.15/lib folder.
How have I removed it?
According to jetbrains page I chose Groovy JUnit test library and press fix. After few minutes I decided not to use Groovy JUnit so I deleted this library from my project, but in practice I removed .jar from my folder and that was the reason why alt+enter didn't work. After the .jar is restored everything is as normal.
Thank you CrazyCoder and liro Alhonen
No control on auto formatting in CVS diff, IntelliJ IDEA after 2019.2 version
Disable the option to optimize the imports on the fly:
This option has been there for many years.
Related Topics
Why Is Hibernate Open Session in View Considered a Bad Practice
Dynamically Add Components to a Jdialog
How to Execute Cmd Commands via Java
.Toarray(New Myclass[0]) or .Toarray(New Myclass[Mylist.Size()])
Why Would You Ever Implement Finalize()
How to Play .Wav Files with Java
Why Do We Usually Use || Over |? What Is the Difference
How to Instantiate a Class by Name in Java
Custom Method for Update Query With Spring Data Mongorepository
Differencebetween Serializable and Externalizable in Java
How to Catch an Exception from a Thread
Sqlexception: No Suitable Driver Found for Jdbc:Derby://Localhost:1527
Dynamic Spring Data JPA Repository Query with Arbitrary and Clauses
Concatenating Null Strings in Java
Java System Properties and Environment Variables