Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop PhpStorm from indexing my `excluded` directory?

Within PhpStorm 2018.1.6 I've got a directory x which I have excluded using Settings | Directories -> Exclude directory x. PhpStorm takes care of most of the directories which I have excluded but not this one. While I am editing/creating PHP tests PhpStorm constantly is busy with indexing this directory.

enter image description here

Directory x is part of an imported project.

Is there any reason which PhpStorm can have to exclude an excluded directory and indexes it as well? The indexing process takes forever.

enter image description here

like image 940
Klyner Avatar asked Jul 06 '18 11:07

Klyner


1 Answers

Things to try (from Jetbrain team):

  • Remove "Add packages as libraries" checkbox at Preferences | Languages & Frameworks | PHP | Composer (click Ok to save).

  • Check that you don't have those excluded directories added as include path at Preferences | Languages & Frameworks | PHP afterward.

Test by rebuilding cache File | Invalidate Caches / Restart...

I encountered this problem when I had the root project path listed in the include path and filed it as a bug and they suggested these things.

like image 175
TrophyGeek Avatar answered Oct 23 '22 05:10

TrophyGeek