Performing VCS Refresh... (Takes too long or never finishes)

40,600

Solution 1

What is the work around so I can commit again from IntelliJ

On IntelliJ, not sure: older similar bugs have been closed (as "obsolete"), like IDEA-63491

A more recent one (IDEA-93086) states:

It works again after a fresh checkout.

As a workaround, the solution would be to push from the command-line (so outside IntelliJ).

Solution 2

In IntelliJ navigate to:

File > Invalidate Caches / Restart...

and select the highlighted:

Invalidate and Restart

Solution 3

Just ran into this issue on WebStorm 2016.1 on Windows 8.1. What fixed it for me is deleting the vcs-log directory. I also have IntelliJ Community Edition installed which didn't have this problem at the time so I figured it must be an issue with the application settings (hidden directory in home folder) not the project specific settings (.idea folder in the project directory).

Close IntelliJ/Webstorm and go to your home folder, you'll find a hidden directory there where IntelliJ/Webstorm keeps it's configuration. (The name of this hidden directory depends on the application name (IntelliJ/PHPStorm/Webstorm) and it's version:

C:\Users\{ your user name of pc }\.WebStorm2016.1

Inside there is a system folder which in turn has a vcs-log folder.

C:\Users\{ your user name of pc }\.WebStorm2016.1\system\vcs-log

Delete or rename the vcs-log folder and restart the application and everything should return to normal.

Solution 4

If you are complaining that it is slow when you commit, you can follow the steps below.

Go to git commit screen with command + K

Right Click Unversioned File

Disable Show Unversioned Files

Like this

Solution 5

Invalidate Caches and Restart, and a fresh checkout did not work for me.

Opening the project in IntelliJ after deleting the .idea folder helped.

Share:
40,600
quarks
Author by

quarks

Updated on May 14, 2021

Comments

  • quarks
    quarks about 3 years

    What is the fix for the issue when trying to commit from IntelliJ:

    enter image description here

    This windows either takes too long or does not finished at all. What is the work around so I can commit again from IntelliJ

  • azwar_akbar
    azwar_akbar about 9 years
    Thanks, it means IntelliJ can't handle it.
  • AZ_
    AZ_ about 9 years
    Intellij really sucks at SVN, it doesn't even shows the log of files it is committing
  • hammurabi
    hammurabi about 6 years
    If still not working, try VCS > Refresh File Status from the root directory or your project. Useful if you've run git from the command line.
  • Baxny
    Baxny almost 6 years
    For PHPstorm deleting the folders out of vcs-cache fixed my issue
  • tanderson
    tanderson over 5 years
    This worked for me when the Invalidate Caches/Restart and VCS/Refresh File Status didn't resolve the issue (both have in the past)
  • wonsuc
    wonsuc about 5 years
    This is the answer.
  • gg99
    gg99 over 4 years
    Note: that setting is not git specific (I am using a mixture of perforce + svn). In my case slowness went away after disabling 'Show Unversioned Files'. I had not noticed about 300,000 (!) unversioned files (build output) making the VCS commit window cripplingly slow.
  • Pedro Lobito
    Pedro Lobito about 4 years
    Beware this will close all open projects, not only the one you want to invalidate the cache.
  • bici-sancta
    bici-sancta over 3 years
    Thank you ! this worked for me. Also, FWIW, I was at the same time trying to develop a Dash/Plotly app which was loading glacially slowly ... and that has also enormously improved load time now.
  • Janaka Bandara
    Janaka Bandara about 3 years
    Same here! Worth mentioning that in my case, the IDEA-level project root had somehow been marked as <project dir>/.idea (so all configuration paths etc were being displayed like ../.git, ../src ...) - so the IDEA config was effectively corrupted, which could have caused the VCS refresh issues in the first place
  • Paul
    Paul almost 3 years
    32bit Version of what?