OpherV / gitflow4idea

Git Flow Integration plugin for IntelliJ
Apache License 2.0
504 stars 138 forks source link

Hanging phpstorm when many submodules are present #321

Open controvi opened 3 years ago

controvi commented 3 years ago

Don't have anything else sadly. It just hangs while checking and no errors appear.

Hope you can fix it

OpherV commented 3 years ago

Is there a chance perhaps your project is open source? If not, any way for you to create a dummy project with a lot of submodules and see if it happens again on your machine?

I'll need a way to reproduce the issue to be able to solve it...

controvi commented 3 years ago

Sure :) I will try to set something up for you. The project itself sadly is not opensource so can't share it with you.

Tomorrow probably will be to busy to set it all up but will do try to get it done at least before friday end of the day.

clifficious commented 3 years ago

I was having the same issue. It got so bad, that I had to uninstall this lovely plugin. Unfortunately I also can not share my project with you. Having the same issue with Intellij latest version.

OpherV commented 3 years ago

Sorry you're experiencing this guys. Unfortunately I was not able to reproduce this on my own... So I'm afraid I can't attempt to solve unless I have a local project that presents this problem :(

CC007 commented 3 years ago

I can confirm this issue happens in IntelliJ as well. It seems to happen due to gitflow waiting on a certain FutureTask in de AWT EventQueue thread, which obviously will prevent the window from being drawed for that time. I therefore expect that that something is happening on that thread that should have been executed in parallel instead.

I have my idea.log and threaddump attached.

threadDump-20210706-164056.txt idea.log

rvdsteege commented 2 years ago

Experiencing the same issue. I've been struggling with the slow opening of our project for a while, but now finally discovered that the Gitlfow plugin seems to be the culprit.

Opening our Pronamic Pay project β€” a payments plugin for WordPress β€” takes about 2 minutes (MBP 16" from 2019). While opening, the directory tree says "loading..." and in the status bar there is a message "Scanning files to index". If I disable the Gitflow plugin, there are no delays when opening the project πŸŽ‰

I was able to reproduce the issue when opening the wp-pronamic-pay project directory in PhpStorm, with these minimal steps (without even installing Node.js and Composer dependencies):

git clone git@github.com:pronamic/wp-pronamic-pay.git
cd wp-pronamic-pay
php src/repositories.php develop

Would love to see this issue resolved in the future, but for now I'm fine with having the Gitflow plugin disabled and enabling it when needed.

Project setup

Environment

OpherV commented 2 years ago

@rvdsteege Thanks! I'll try to reproduce with this project