Reputation: 953
Every time I start eclipse, the program begins doing this "Update SVN cache" thing but it will sit at 0% forever. I cannot perform any operations (such as checking out my projects, building them, or even running them) until this operation is completed (which never happens). Also, whenever I try to type anything in the editor, the whole program freezes and I have to kill the process.
I have been searching google for the answer to this problem for days and have yet to come up with an answer. Has anyone else had a similar problem and found a solution?
I'd like to add that I've tried re installing eclipse, all its plugins, and the jdk from scratch. Nothing seems to be working.
Upvotes: 41
Views: 66072
Reputation: 132
I found an index error in eclipse which blocking the svn. Another project resources and svn repo were in .metadata\.plugins\org.eclipse.core.resources\.projects\ProjectName\4.tree
and other resources.
svn cleanup
with the previous answer with 'Team > SVN > Performance
' doesn't solve my problem.
'eclipse.exe -clean
' will make eclipse unresponsible with 100% cpu.
The only solution was after exit eclipse the manual deleting of org.eclipse.core.resources\.projects\*
files.
Upvotes: 1
Reputation: 2295
I faced the same issue and I tried to get out of this by disable most of performance setting for SVN in Eclipse:
OR (for latest versions): Windows > Preferences > Version Control (Team) > SVN > Performance
Upvotes: 26
Reputation: 637
I was also facing similar issue and I got it resolved this by unchecking "Compute deep outgoing state for folders" under Windows->Preferences->Team->SVN->Label Decorations
Upvotes: 2
Reputation: 71
In my case I realized that a tortoise SVN explorer related windows was somewhere open. It probably locked the cache and eclipse was waiting for the unlock.
Not a direct answer to the question, but this might help for somebody making a similar mistake.
Upvotes: 7
Reputation: 312
I solved doing this:
-Select the project (or all projects) on your workspace (in eclipse), right click, select from the menu Team > Cleanup
Upvotes: 1
Reputation: 41
Upvotes: 4
Reputation: 143
This topic helped me for solving the problem about my eclipse svn update block.
I am using eclipse mars where this case came.
Upvotes: 1
Reputation: 1
I used Subversive - SVN Team Provider 3.0.0 with SVNKit 1.8.10 as SVN Connctor. I updated the SVN Connctor to the latest version 1.8.11,and fixed it.
Upvotes: 0
Reputation: 1710
It could be eclipse memory issue. I had similar problem until I did these steps:
This will show your memory usage in eclipse.
-Xms1024m
-Xmx1024m
Look at the memory status. Hope it will help.
Upvotes: 2
Reputation: 650
If there is duplicate project from SVN.
Upvotes: 0
Reputation: 6324
I faced this problem when having the same project in the workspace twice. Make sure you have only one copy of it in the workspace, maybe it helps.
Upvotes: 3
Reputation: 918
Do you use Maven SCM connector ? Try uninstalling it if you dont need it. SCM connector is required for Maven SCM checkout, I do not use Maven SCM project checkout, instead I use SubEclipse checkout and convert project to maven using import existing project or convert to Maven project option from the context menu in Eclipse.
Upvotes: -1
Reputation: 91
I just ran into this issue and was able to rescue it. This was with Zend Studio 10.5 which sits on Juno. I have about five projects in my workspace, one of which was open. I couldn't close the project because it was waiting for "Update SVN Cache" to complete.
That didn't fix anything. Finally I tried this:
So far my workspace/.metadata/.plugins/org.eclipse.team.svn.core directory is still empty.
I don't know if the first two things I tried helped out at all, or if just renaming the .project file to force-close the project was all it took. Next time it happens (and there will be a next time) I'll try just force-closing the project and report back.
Upvotes: 9
Reputation: 923
In my case, for 30 odd minutes it showed just 0 percent completed. I patiently waited since I tried restarting eclipse/machine still was getting the same thing. After 30 minutes, it continued with my svn update operation and completed it successfully.
Patience at times, helps :)
Upvotes: 0
Reputation: 328536
You're not the only one (see this bug report or this forum thread) but it's probably not a bug in Eclipse itself. Next steps:
Get a thread dump to see whether this is a deadlock or a thread is waiting for something that never happens (in the bug report, it hangs in System.loadLibrary()
). You can use jconsole
for this, it comes with the SDK.
Check all open projects in your workspace (that use SVN) with another SVN tool (command line svn or TurtoiseSVN if you're on windows) to make sure the data structures aren't corrupt.
Get the latest version of Eclipse and/or the SVN plugin
Try a different connector. Some people fare better with the JNI solution javahl
, others with the pure-Java SVNKit.
Upvotes: 6