Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm - show all errors on inspection

Tags:

phpstorm

PHPStorm newbie question.

I'd installed PHPStorm yesterday and was very impressed. It identified countless small issues with my code, like referencing non-static classes statically - I loved that it highlighted the problems in my open PHP files. There was a bit long list in the "inspection results" section (I think) which identified errors in various groupings. Great!

Today I can't get it to identify any errors at all, other than "Typos". Same project.

Clearly I messed up a a configuration somewhere, but I'm pretty baffled as to where. I've been through the Preferences section for the last hour trying different things, but can't get it to work as before.

Any tips...?

  • Ben
like image 482
benjamin.keen Avatar asked May 07 '13 01:05

benjamin.keen


1 Answers

Editor not doing proper code highlighting or not working inspections can be caused by the corrupted caches.

The solution is to do File | Invalidate Caches and restart the IDE.

like image 81
CrazyCoder Avatar answered Sep 21 '22 19:09

CrazyCoder