PhpStorm Indexing Takes Forever / Stuck on Indexing
Workaround available Windows, macOS, Linux Updated November 14, 2026Based on 3 user reportsHow we research
Quick answer
PhpStorm indexing can run for many minutes or never finish on a Laravel or Symfony project with many vendor and node_modules files. The fix that usually works is excluding generated folders and invalidating caches.
Most likely fix: Exclude folders you do not edit
How to fix it
Try these in order — the most common fix is first.
1. Exclude folders you do not edit
- In the Project tool window right-click the folder
- Choose Mark Directory as | Excluded
- Repeat for vendor, node_modules, storage/framework and var/cache
- Wait for indexing to finish once
Did this fix it?2. Invalidate caches
- Open File | Invalidate Caches
- Tick the options you want to clear and click Invalidate and Restart
- Let the full re-index finish before working
Did this fix it?3. Exclude the project and IDE caches from antivirus
- Add the project folder and the IDE system/cache folder to your antivirus exclusions
- Restart the IDE
Did this fix it?
Symptoms
The status bar shows "Indexing..." or "Updating indexes" for a long time, code completion and navigation are unavailable, and fans spin up.
Why it happens
- Huge generated or dependency folders (vendor, node_modules, storage/framework and var/cache) inside the project root
- Corrupted caches after a crash, update or forced shutdown
- Antivirus scanning the IDE caches and project folder in real time
- Project stored on a slow network drive or synced folder (Dropbox, OneDrive)
- Too little heap memory, so the indexer keeps garbage collecting
This guide also covers
- phpstorm indexing forever
- phpstorm stuck on indexing
- phpstorm indexing slow
- phpstorm updating indexes
Still not working?
If PhpStorm keeps failing, you're not alone. See every PhpStorm problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther PhpStorm errors
- PhpStorm Xdebug Not Connecting / Breakpoints Not Hit
- PhpStorm PHP Interpreter Is Not Configured
- PhpStorm Composer and Laravel Not Working (Autocomplete, Undefined Class)
- PhpStorm Out of Memory: How to Increase Heap Size
- Why Is PhpStorm So Slow / Freezing?
- PhpStorm License Activation Error / License Not Found
- PhpStorm Plugin Incompatible After Update
- PhpStorm AI Assistant Quota Exceeded / Not Working