Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm starts indexing files on each launch

Tags:

phpstorm

I am not sure if this is desired behaviour, but PhpStorm (8.0.3) proceeds to index all files and directories each time I open the IDE. The indexing takes too long - half hour and more. During that time I'm not able to access many configuration options or use "Go to definition" option.

It is very irritating. Shouldn't PhpStorm somehow cache the indices so that it does not go through the whole process over and over again?

It seems that the problem grew over time and at this time it totally paralizes my ability to work on projects.

Is there a solution to it that you know of?

like image 766
luqo33 Avatar asked Feb 04 '16 11:02

luqo33


People also ask

What is PHPStorm indexing?

Indexing in PhpStorm is responsible for the core features of the IDE: code completion, inspections, finding usages, navigation, syntax highlighting, and refactorings. It starts when you open your project, switch between branches, after you load or unload plugins, and after large external file updates.

How do I stop auto indexing in IntelliJ?

You can stop synchronizing/indexing each time you switch to the IDEA and it's quite useful when dealing with big projects and outside build process which triggers indexing. Just disable checkbox System Settings -> Synchronize files on frame or editor tab activation .

Is PHPStorm slow?

PHPStorm 2020.3 very slow Follow. I have what is probably a pretty non-standard installation, but it's worked well enough for me in the past. Since the update to 2020.3, it's been painfully slow to do basically everything.


2 Answers

Try right-clicking file -> invalidate caches and restart. It worked for me!

like image 189
kgori_dev Avatar answered Oct 18 '22 00:10

kgori_dev


is this problem still current? It's more than year since question, so it could be fixed already.

There is no reliable way to say why it's happenings without seeing the logs.

You may try this:

  1. Close IDE (or this project at least)
  2. Backup and delete .idea subfolder (this project settings)
  3. Launch IDE and using "Open" point to the project root -- IDE will create new project from those files
  4. Reconfigure your project as needed
  5. Restart IDE / close-reopen project (do what you did in the past where it lead to project re-indexing)
  6. It's better now?
  7. If yes, and you have not re-configured ALL aspects of the project yet -- then you may re-use some of the files from previously made backup (while IDE/project is closed, of course)
like image 43
PayteR Avatar answered Oct 17 '22 23:10

PayteR