benjamin.keen
benjamin.keen

Reputation: 1984

PHPStorm - show all errors on inspection

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...?

Upvotes: 5

Views: 5331

Answers (2)

Rob
Rob

Reputation: 5481

Invalidating caches didn't worked for me.

In my case inspections were disabled because I had activated a wrong profile that wasn't checking PHP issues.

So be sure to check the used profile:

Right click on inspection indicator

Click on configure inspections

Select proper profile

Upvotes: 0

CrazyCoder
CrazyCoder

Reputation: 401995

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.

Upvotes: 10

Related Questions