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

351

Within PhpStorm 2018.1.6 I've got a directoryx which I have excluded usingSettings | 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

Directoryx 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

396

Answer

Solution:

Things to try (from Jetbrain team):

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

  • Check that you don't have those excluded directories added asinclude path atPreferences | Languages & Frameworks | PHP afterward.

Test by rebuilding cacheFile |Invalidate Caches / Restart...

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

People are also looking for solutions to the problem: php - How to prevent search bots to call API every time

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.