Eclipse periodically freezes when editing large project in a git repository - eclipse

I am developing a python project in Eclispe 3.7, PyDev, and EGit. Every 20 minutes or so, Eclipse will freeze up, displaying in the bottom-right corner "Git repository refresh Job: (0%)" Once this number increases above 0%, the UI becomes responsive again and can be used until the next time it freezes. Is there a way to stop this from happening?

Sounds like a bug in EGit. Could you write an email to the EGit mailing list (egit-dev#eclipse.org) or file a bug report on http://bugs.eclipse.org and provide as many information as possible?
As a first workaround you could look at the options on Window -> Preferences -> Team -> Git and on that page the preference "Refresh resources when index changed" and "Refresh only when workbench is active". You can also look at Label decoration and play with the recurse option.

I'm having a similar issue with eGit and Eclipse 3.7. I suggest you take a look at this Eclipse bug:
Eclipse Bug 336612
I took a stack trace when my UI was freezing, and was able to match it against the stack trace in the Eclipse bug. It appeared to be an issue with how long eGit is taking to perform an operation.

Related

My eclipse IDE failing to detect changed files in Git perspective?

Hi I have Eclipse Mars Installed, I have imported git repository (Having PHP code inside). Open perspective is "Git". Once I open eclipse, it says no repository has been selected. I click on repository, it shows progress bar (I guess git status might be running at background). Then it detects the changes that I made last time before closing the Eclipse. But since this point of time no any further file changes are getting detected by eclipse unless & until I restart it & follow the steps as mentioned above. Is there any refresh button that eclipse has in git perspective ?
Please see the below screenshot which has refresh button in the git perspective, hope you are in this view.

Eclipse workspace issue with CCRC plugin error

Update 28 May 2013:
I have found a work around for this. Though this is not always works MOST of the time it does.
In Eclipse > Preferences > General > Startup and Shutdown
uncheck the option "ClearCase Remote Client plug-in"
Every time I start the problem workspace, before doing anything (like click on any resource or click on project in project explorer) I connect to the ClearCase repository.
This seems to calm down the error most of the time. Also, the Eclipse shortcut that I have on my desktop, has -clean option set in it. So when I start the eclipse my eclipse already starts with the clean up option. Though not sure if it has any bearing on the problem.
However not sure if this will help in a situation when I am working offline; when I can not connect to the ClearCase repository.
Update 21 May 2013:
At this time it looks like there is no resolution for this except a CCRC plugin upgrade.
For now marking VonC's answer as correct. Will update the post if I find a better solution.
I created a fresh new workspace and setup the workspace and so far I do not see any problems so far. Still not sure what was wrong with my workspace though.
==================================================
I have been having this problem for quite sometime on one of the workspace.
Error:
I am seeing the following error pop up with the error message; and will NOT go away.
An error has occurred. See error log for more details.
Could not initialize class com.ibm.rational.team.client.ui.model.common.ImageManager
Symptoms:
It happens only in one work space almost all the time.
Every time I restart this workspace, when ever I click on any projects in project explorer or any open file, it causes the error pop up to come up.
It goes away if I close all files, close the offending project and then delete the project. I fire up eclipse, re-import the project and the issue goes away only as long as I continue using the eclipse. Once I restart the eclipse the same problem persists.
What I have tried so far:
start eclipse with -clean option --> It does not solve the problem.
I have enabled the "Refresh workspace on startup" option in "Eclipse > Preferences > General > Startup and Shutdown" --> this does not solve theproblem.
I deleted the folder "org.eclipse.core.resources" under "Offending_Workspace > .metadata > .plugins" folder --> this has no effect. The problem persists as mentioned in Symptoms3 above.
System Info:
Windows 7 Enterprise Edition 64 bit.
Eclipse 3.7 Java EE developers
CCRC plugin Version: 7.1.0.0 , Build id: 7.1.1.03.00_2010C.D100803
Is there anything that can be done to resolve this. It's frustrating to work with such a broken plugin, that practically hinders ones work.
Any suggestion will be helpful.
This looks like PM38965 and there is no other solution than upgrading:
A fix is available in ClearCase versions 7.1.1.8, 7.1.2.5 and 8.0.0.1
You can see it listed in this release note:
PM38965:
Addresses a ClearCase issue where the ClearTeam Explorer produces a "Could not initialize class com.ibm.rational.team.client.ui.model.common.ImageManager" error intermittently when performing various operations.
The OP reports a workaround:
In Eclipse > Preferences > General > Startup and Shutdown, uncheck the option "ClearCase Remote Client plug-in"
Every time I start the problem workspace, before doing anything (like click on any resource or click on project in project explorer) I connect to the ClearCase repository.
This seems to calm down the error most of the time.
Also, the Eclipse shortcut that I have on my desktop, has '-clean' option set in it. So when I start the eclipse my eclipse already starts with the clean up option.
Though not sure if it has any bearing on the problem. However not sure if this will help in a situation when I am working offline; when I can not connect to the ClearCase repository.
The '-clean' being a local operation, it will have the same effect offline or online.

Two SVN Repository Perspectives in Eclipse

For Android development I'm using Eclipse Indigo and Subclipse 1.6.18.
I happened to notice today that when I go to Window > Open Perspective I see two SVN Repository Perspectives. One says "SVN Repository Exploring" and the other says the same thing but inside angle brackets, i.e,
"<SVN Repository Exploring>".
The first one brings up a blank window; the angle-bracket one brings up a window with my repositories in an upper tab and "task repositories" in a lower tab.
I also noticed that if I go to Help > Install New Software and show what's already installed,and uninstall all the Subclipse components, and restart Eclipse, these two SVN perspectives still exist. They don't work anymore because of missing SVN components but they're still there.
So where do these two SVN repository perspectives come from and why one with, and one without, angle-brackets? Thanks in advance.
You can have two if you have both Subclipse and Subversive installed. However, note that your workspace also will save and remember perspectives, particularly if you customize and save them. Try starting Eclipse with a new workspace and see if they go away.

Eclipse + Git - How to get toolbar?

I've got Eclipse 3.7.2 installed and working fine. I installed the git plugins (see below).
Right clicking my active project and clicking on "Team" gives me the options to pull/push/commit and more.
I have set my git executeable to msysgit (C git).
The docs told me that to add git to the toolbar I should look in Window->Customize Perspective..., but I couldn't anything related to git there, not even under the "Command Groups Availability" section.
How do I add push, pull & commit buttons to my Eclipse toolbar?
Stumbled on this answer, but found this works:
Install the Egit plugin, add the Git command group in Customize Perspective|Command Groups Availability, not the (pretty much useless) "Team", then check "Git" in Customize Perspective|Tool Bar Visibility
First install EGit from http://download.eclipse.org/egit/updates. Then you should find the Git command group and be able to activate it. msysgit isn't integrated with Eclipse.
See "Activating the Git toolbar "
Nothing worked and I had begun getting an unrelated error on startup with a troubleshooting step requiring reinstall.
This time I downloaded Eclipse for Mobile Developers, and since then I have added my other packages and it's all working, but clicking the commit thing and clicking the arrow to merge my changes (with comment) results in nothing.
It isn't committed nor is an error given.
install a fresh copy of eclipse with a new fresh workplace
install egit
show egit in toolbar (from customise perspective, etc....)
copy \.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi from the fresh installed workplace into your current workplace
you'll loose some position settings of the layout, but most of the settings will be kept, and most important you'll have egit in toolbar in your current workplace.
if you like you can analyse/diff the file workbench.xmi and see what you have to set to get the toolbar; for me it was enough (most likely workplace was from previous versions of eclipse, and egit/eclipse does not update this xml file)

In Eclipse, why does "Build Automatically" get mysteriously disabled?

I'm running Eclipse Europa (3.3). I leave the "Build Automatically" setting, under the Project menu, on all the time. Once in awhile my code isn't compiling, and I puzzle over it and then pull down the Project menu ... lo and behold, it's not set anymore. What gives? Is this a bug, or is there something else I'm doing that could cause it?
Edit: I am running the regular Java developer installation, plus Subversive and its connectors, Jetty Launcher, and I believe no other plugins. Other people at my workplace have had the same problem.
Edit: I am still having this problem once in a blue moon, only now I'm using Eclipse Galileo (3.5) for Windows. I haven't had this problem in Galileo for OS X, neither in Cocoa nor Carbon, but I have not used that for as long.
With Eclipise Mars.1 (4.5.1), Oomph may be the culprit. Eclipse Oomph supports automatically disabling Build Automatically with entries in
On Windows
%USERPROFILE%\.eclipse\org.eclipse.oomph.setup\setups\user.setup
If you want to disable this Oomph behavior try deleting the following setting
"Eclipse->Navigate Menu-> Open Setup menu entry-> Open User menu entry", a Preference Task under "User Preferences -> org.eclipse.core.resources -> description.autobuilding"
I learned about this setting by posting to the Oomph Eclipse Community Forum on Feb 8th, 2016. I posted a question titled "Oomph Defect? Build Automatically Keeps Getting Disabled". Ed Marks replied the same day with details about Oomph's support for managing the Eclipse "Build Automatically" setting.
https://www.eclipse.org/forums/index.php/m/1722751/#msg_1722751
I don't have eclipse right here to test and make sure but here is an idea.
Is any of the project or even workspace file in SVN ? if they are and they were uploaded with auto build disabled that might explain it
You update and overwrite your settings. This doesn't become apparent until you restart eclipse. this would also explain why other people at your workplace experienc this. it would even explain why some don't : thay are the ones who are careful what they update and don't allow eclipse to overwrite their own settings plus the ones who actually prefer to have autobuild disabled :)
I had the same problem and when I looked at the Source tab under Java Build Path (under the menu Project > Properties ) there were some source directories that didn't exist anymore (marked with a red X). After I deleted them, compilation worked fine and all new .class files are under the bin folder.
Strange. Is there perhaps a plugin installed that turns this off without your knowledge?
Maybe there is some conflicting shortcut. For example, some duplicated shortcut may be toggling it.
I am running 3.4 and I also have this mysterious behavior. I had it in 3.3 as well. I use CVS not SVN. Does not seem to follow a pattern just once in a while it gets switched off and then weird confusing stuff happens until I remember to check it and switch it back on. I am almost to the point where I want to write a plugin to always turn it on when eclipse loads.
When installing Google Plugin for Eclipse, 'Google App Engine for Android' is also installed.
For me, I uninstalled 'Google App Engine for Android', which I didn't need, and solved this problem.