PhpStorm freezes while opening the first project Follow
When I open the first project, the IDE freezes for 10 seconds or so, how can I troubleshoot this issue?
Build #PS-221.5080.224, built on April 13, 2022
Licensed to --
Subscription is active until November 26, 2022.
Runtime version: 126.96.36.199+1-b2043.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
GC: G1 Young Generation, G1 Old Generation
The mac CPU is at around 20% when the IDE freezes
I found all the thread dumps (zipped below)
Please sign in to leave a comment.
The IDE becomes unusable, it has frozen for 70 seconds just now
I installed npm deps and as it was indexing, I started a "Find in files" search. As I types the first two characters, it completely froze
Do you have any build tools running like npm watch, laravel mix, etc...?
Please try excluding all folders with files dynamically generated by build tools from the project (right click a directory > Mark directory as > Excluded). Do the same with all tmp, log and cache folders.
Looks like the freezes are happening because IDE is looking at file system changes that happened because of build tools.
Thank you, I will try that
It didn't happen with the previous version of 2021
I removed the startup task which was calling the dev build tool, I wanted to avoid any issues coming from the fs watch
It now appears to freeze whenever indexing is performed or to be precise, whenever "Scanning files to index" is displayed
My projects contain node_modules and vendor folders so this can be slow
Sorry, the logs archive isn't full. Could you please run Help > Collect Logs and Diagnostic Data and attach resulting archive? You can also upload it using https://uploads.jetbrains.com/
Thank you for your reply, I will send you the full logs as soon as the issue occurs again.