PhpStorm keeps indexing over and over again Follow
Answered
PhpStorm keeps reindexing over and over again.
Tried to restart the app, but wouldn't solve the problem.
Please sign in to leave a comment.
FILE | invalidate caches and restart seems to have fixed it.
@Rémy
Works !
The issue occured in my case when i switched project locations.
Go to File -> Invalidate Caches and Restart. Fixed my issue - https://www.prodjex.com/2018/03/phpstorm-stuck-re-indexing/
This does not help at all! It keeps indexing node_modules even when it's excluded. It all started again since two updates to php storm.
PhpStorm 2019.1.2
Build #PS-191.7141.52, built on May 8, 2019
JRE: 1.8.0_202-release-1483-b49 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
For anyone on MacOS Catalina. I was having an issue where every time I'd come back to PhpStorm from a different Application, it'd close all the open tabs and re-index. I didn't have this problem before upgrading my OS. I tried the "Invalidate Caches / Restart..." but that didn't work. The one thing that did seem to work for me was going into System Preferences -> Security & Privacy -> Privacy -> Full Disk Access and giving PhpStorm full access instead of the scoped access that it had which in my case was just the "Documents" folder. This solved the issue for me.
PhpStorm 2019.2.4
macOS 10.15.1
@Rémy thanks it works for me
Worked for me to. Thanks!
@Rémy THANK YOU!
Yep, that did the trick for me also. Thanks.
Same problem, same solution for RubyMine. Thank you
Obrigado Remy, deu certinho aqui!
Works, thanks a lot!
Works, many thanks!
Thanks, this solves my issue. I moved project locations.
Yes, seems to have fixed the problem. Wow did that problem make it hard to concentrate.
PhpStorm 2017.3.6
Build #PS-173.4674.46, built on March 15, 2018
JRE: 1.8.0_152-release-1024-b15 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
Thanks Remy!
File -> Invalidate Caches and Restart is not solving the problem for me!
Manjaro Linux (latest)
WebStorm (latest)
Angular (latest, huge project)
Invalidate Caches / Restart is not working for me... I have cloned a new copy from a repo and PyCharm start to "updating indices". Why does it scan from /home/my-home and not only the project's directory?
Invalidate Caches / Restart is not working for me :(
This is the phpstorm version I'm using, and the issue still exists.
PhpStorm 2018.1.6
Build #PS-181.5281.35, built on June 14, 2018
Licensed to Curve Dental / Hung Nguyen
Subscription is active until February 22, 2019
JRE: 1.8.0_152-release-1136-b39 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-31-generic
Did not work for me.
PhpStorm 2018.2.2
Build #PS-182.4129.45, built on August 22, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.12.6
The same happens today with `node_modules` after `git pull && yarn install`. Yesterday it just worked as usual. After resetting to previous commit and invalidating cache usual indexing was restored. But we should continue work with `new node_modules`.
PhpStorm 2019.2
Build #PS-192.5728.108, built on July 24, 2019
Runtime version: 11.0.3+12-b304.10 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.0.0-23-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 725M
Cores: 4
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: com.alayouni.ansiHighlight, com.intellij.ideolog, org.jetbrains.plugins.go-template, org.jetbrains.plugins.stylus, com.stylint, com.jetbrains.lang.ejs, de.espend.idea.laravel, com.intellij.kubernetes, org.zalando.intellij.swagger, ru.adelf.idea.dotenv
Invalidating caches didn't work for me.
What solved my case was:
Fixed in WebStorm 2019.3 EAP 193.4099.10 for a node_modules infinite indexing.
Thanks, JetBrains
Thank @Fermanjii. I've been having the same problem. Does anyone know which path to use for PHPStorm.app if we're using JetBrains Toolbox? I'm trying ~/Applications/JetBrains Toolbox/PHPStorm.app, even though that's not really where it is (maybe it's a pointer, I'm not sure).
You could always find out the installation path for a specific app in JetBrains Toolbox by clicking the "gear" icon near the app name and check the "Installation path" field.
Hope it helps!
I'm still having this same problem. The darned thing keeps indexing, and it's starting to drive me a little nuts. I updated to 2020.1.2 this morning, but it's still doing it. I'm in the middle of typing some code, and I don't see it on the screen. Then I look down and the thing is indexing again. Why? I've done the invalidate caches, deleted the .ideas directory.... I'm on MacOS 10.15.4.
remy.courteaud How/where can directories and files be excluded?
Pweil2 Maybe try to mark files or directories as excluded that don't need to be analyzed (like logs or builds).
On mac => Right click => mark directory as => excluded
Or through settings => Settings => Directories
Rémy
Thanks, I'm giving this a try. But some of my exclusions are just guesses. Does JetBrains have a general recommendation for excluding files in certain kinds of projects (mine is a Laravel/Vue app). I've been using PHPStorm for several years, and have never come across this problem before.