Idea PhpStorm - How to fix bugs with incorrect code Inspections and Autocomplete

Sometimes IDE starts to show something unpredictable and strange behavior. 

For example, PhpStorm says that class is not exist in your project. Or you set up incorrect namespace.

Cause all of these things is broken indexes and IDE cache.

To fix this problem easy: 

  1. Go to Main Menu -> Invalidate Caches
  2. Choose Clear file system cache and Local History.
  3. Check VCS log caches and indexes.
  4. Invalidate and Restart.
After that your IDE restarts and relaunch with new indexes. All have to work correctly.


Comments

Popular posts from this blog

CSS Как прикрепить слой (div) к краю

MySQL - How to add JSON column type

Как сделать заголовок модуля активной ссылкой в Joomla 1.5