Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA code analysis tool not working

I'm a relatively new user of the IntelliJ IDEA, moved to it from Eclipse. It has been working fine for several months, but now the code analysis plugin that performs analysis and precompiles the code on the fly, fails to work. It shows errors where they've been already fixed, not importing classes correctly. Restarting IDEA, updating to latest version and so on doesn't help. Did anybody face such problems and how did you resolve them?

like image 482
Tatyana Maximovskaya Avatar asked Jul 15 '12 23:07

Tatyana Maximovskaya


People also ask

How do I enable code analysis in IntelliJ?

Press Ctrl+Alt+S or choose File | Settings (Windows and Linux) or JetBrains Rider | Preferences (macOS) from the menu , then choose Editor | Inspection Settings on the left. Use the Enable code analysis checkbox to toggle the design-time code inspection.

How do I fix my IntelliJ IDEA?

From the main menu, select File | Repair IDE. IntelliJ IDEA will automatically launch the first recovery step and refresh the virtual file system. IntelliJ IDEA will display a notification that you can use to continue or complete the recovery process.

How do I bypass code analysis in IntelliJ?

Disabling inspections in the Problems tool window In the Inspection Results tool window (after running code analysis), right-click the inspection you want to disable and select Disable inspection.

Where can you check if your solution is correct IntelliJ?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Inspections. You can also press Ctrl+Alt+Shift+H and select Configure Inspections in the popup that opens.


1 Answers

Issue seems resolved, overall there's a couple of things that you can do when something is not working properly in Intellij:

  1. Close intellij, open again.
  2. Try building the project
  3. Try invalidating the Caches and Restarting from the "File" menu
  4. If using Maven try reimporting all modules and re-generating sources, these 2 features are right next to each other in the "Maven Project" window.
  5. If all fails, delete the whole project and reimport it (for maven open the project again through the pom.xml for gradle the the build.gradle etc).
like image 103
sakis kaliakoudas Avatar answered Oct 27 '22 22:10

sakis kaliakoudas