Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » EGit not working in Galileo 3.5.2?(Get "unable to update index" error with Share of Project using EGit on Galileo)
EGit not working in Galileo 3.5.2? [message #539697] Fri, 11 June 2010 21:33 Go to next message
No real name is currently offline No real name
Messages: 4
Registered: June 2010
Junior Member
Hi,

I just installed EGit 0.81 on two different versions of eclipse:

Ganymede 3.4.1 on CentOS 5.5

and

Galileo 3.5.2 on Gentoo r5

They both installed with no problems, although the install seemed slightly different.

But, the Galileo on Gentoo r5 will not work with the PHP Explorer perspective. You can create a Git perspective and drill down into the repository with no problems. You can even do the Team>Share>Using existing Repo and all seems well, except that nothing seems to work in the PHP Explorer perspective.

I tried running an update on Galileo for all the other installed software. Removed and re-installed the EGit several times, with -clean on eclipse between attempts, but always the same thing...

Any ideas?

Thanks

ewb

eclipse.buildId=M20100211-1343
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -clean

java.lang.ArrayIndexOutOfBoundsException: 0
at org.eclipse.egit.ui.internal.actions.DiscardChangesAction.is Enabled(DiscardChangesAction.java:63)
at org.eclipse.team.internal.ui.actions.TeamAction.setActionEna blement(TeamAction.java:312)
at org.eclipse.team.internal.ui.actions.TeamAction.selectionCha nged(TeamAction.java:297)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(Plugi nAction.java:206)
at org.eclipse.ui.internal.PluginAction.selectionChanged(Plugin Action.java:277)
at org.eclipse.ui.internal.ObjectActionContributor$1.run(Object ActionContributor.java:157)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.ObjectActionContributor.contributeOb jectActions(ObjectActionContributor.java:160)
at org.eclipse.ui.internal.ObjectActionContributorManager.contr ibuteObjectActions(ObjectActionContributorManager.java:97)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(P opupMenuExtender.java:262)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(Po pupMenuExtender.java:339)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuMan ager.java:338)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuM anager.java:469)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.ja va:465)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager .java:491)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:235)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1200)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1181)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:199)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:3519)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3109)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


Re: EGit not working in Galileo 3.5.2? [message #540660 is a reply to message #539697] Wed, 16 June 2010 21:33 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 324
Registered: July 2009
Senior Member
ebaer@actc.com wrote:

> Hi,
>
> I just installed EGit 0.81 on two different versions of eclipse:
>
> Ganymede 3.4.1 on CentOS 5.5
>
> and
>
> Galileo 3.5.2 on Gentoo r5
>
> They both installed with no problems, although the install seemed slightly
> different.
>
> But, the Galileo on Gentoo r5 will not work with the PHP Explorer
> perspective. You can create a Git perspective and drill down into the
> repository with no problems. You can even do the Team>Share>Using
> existing Repo and all seems well, except that nothing seems to work in the
> PHP Explorer perspective.
>
> I tried running an update on Galileo for all the other installed software.
> Removed and re-installed the EGit several times, with -clean on eclipse
> between attempts, but always the same thing...
>
> Any ideas?
A bug... If this is using the version of Eclipse downloaded from
Eclipse.org, please submit a bug report at bugs.eclipse.org

This "smells" like problems I've had in other "explorers", like the Java
Project Explorer in the JEE perspecive, which behaves differently from the
Java Package Explorer.

> Thanks
>
> ewb
>
> eclipse.buildId=M20100211-1343
> java.version=1.6.0_17
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86_64 -clean
>
> java.lang.ArrayIndexOutOfBoundsException: 0
> at org.eclipse.egit.ui.internal.actions.DiscardChangesAction.is
> Enabled(DiscardChangesAction.java:63)
> at org.eclipse.team.internal.ui.actions.TeamAction.setActionEna
> blement(TeamAction.java:312)
> at org.eclipse.team.internal.ui.actions.TeamAction.selectionCha
> nged(TeamAction.java:297)
> at org.eclipse.ui.internal.PluginAction.refreshEnablement(Plugi
> nAction.java:206)
> at org.eclipse.ui.internal.PluginAction.selectionChanged(Plugin
> Action.java:277)
> at org.eclipse.ui.internal.ObjectActionContributor$1.run(Object
> ActionContributor.java:157) at
> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.ObjectActionContributor.contributeOb
> jectActions(ObjectActionContributor.java:160)
> at org.eclipse.ui.internal.ObjectActionContributorManager.contr
> ibuteObjectActions(ObjectActionContributorManager.java:97)
> at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(P
> opupMenuExtender.java:262)
> at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(Po
> pupMenuExtender.java:339)
> at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuMan
> ager.java:338)
> at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuM
> anager.java:469)
> at org.eclipse.jface.action.MenuManager.access$1(MenuManager.ja va:465)
> at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager
> .java:491)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
> ner.java:235)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1200)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1181)
> at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:199)
> at org.eclipse.swt.widgets.Display.runPopups(Display.java:3519)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3109)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:113)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:368)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25) at
> java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Re: EGit not working in Galileo 3.5.2? [message #543881 is a reply to message #540660] Wed, 30 June 2010 22:38 Go to previous message
No real name is currently offline No real name
Messages: 4
Registered: June 2010
Junior Member
I posted this problem to the eclipse support site and they were not impressed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=317188

>> zhaozhongwei 2010-06-30 11:51:18 EDT comment 6
>> I use helios,php2.2 and egit0.84,it seems php explorer works fine with egit.

So I took his advice and tried a new version of eclipse, egit, etc.

OK, so I tried installing a complete new version of eclipse Helios and egit 0.84, and guess what, NO JOY!

I tried several ways, with and without all my other plug-ins, removing all the .eclipse and .metadata directories.

You name it, I tried it, but it still didn't work!

Finally, I went back to my other machine with Ganymede and looked at what it was doing with the Team>Share stuff and noticed that the .git repository was just that; .git under the project directory. But it was completely different on the Galileo install.

Then it hit me, the project on the Ganymede install was in a real directory, the project on the Galileo install was a symbolic link, and the egit was using the correct project path, but it was using the real path to the .git repository. Unfortunately missing the / at the top of the path, so it could not find it.

To make sure I was right, I copied the contents of the project to a real directory and added it to eclipse, then tried to Team>Share, and low-and-behold, it works!

So, probably there is a bug here somewhere, but it seems more likely at this point it is with egit.
Re: EGit not working in Galileo 3.5.2? [message #581852 is a reply to message #540660] Wed, 30 June 2010 22:38 Go to previous message
No real name is currently offline No real name
Messages: 4
Registered: June 2010
Junior Member
I posted this problem to the eclipse support site and they were not impressed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=317188

>> zhaozhongwei 2010-06-30 11:51:18 EDT comment 6
>> I use helios,php2.2 and egit0.84,it seems php explorer works fine with egit.

So I took his advice and tried a new version of eclipse, egit, etc.

OK, so I tried installing a complete new version of eclipse Helios and egit 0.84, and guess what, NO JOY!

I tried several ways, with and without all my other plug-ins, removing all the .eclipse and .metadata directories.

You name it, I tried it, but it still didn't work!

Finally, I went back to my other machine with Ganymede and looked at what it was doing with the Team>Share stuff and noticed that the .git repository was just that; .git under the project directory. But it was completely different on the Galileo install.

Then it hit me, the project on the Ganymede install was in a real directory, the project on the Galileo install was a symbolic link, and the egit was using the correct project path, but it was using the real path to the .git repository. Unfortunately missing the / at the top of the path, so it could not find it.

To make sure I was right, I copied the contents of the project to a real directory and added it to eclipse, then tried to Team>Share, and low-and-behold, it works!

So, probably there is a bug here somewhere, but it seems more likely at this point it is with egit.
Previous Topic:[EGit] (How) can I get a git history of a folder?
Next Topic:EGit installation
Goto Forum:
  


Current Time: Sun Sep 21 08:24:15 GMT 2014

Powered by FUDForum. Page generated in 0.02875 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software