Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » "Switch to" list is empty
"Switch to" list is empty [message #1048315] Wed, 24 April 2013 09:57 Go to next message
Andreas Lang is currently offline Andreas LangFriend
Messages: 3
Registered: April 2013
Junior Member
Hello,

i have a little problem with a C-Project and EGit:

When i right-click on the project -> "Team" -> "Switch To" i only see the option "new Branch". I have no list with my branches or the option "other".

I have Eclipse Juno CDT with EGit 2.3 and use a remote git-server.
  • Attachment: Egit.png
    (Size: 145.81KB, Downloaded 97 times)
Re: "Switch to" list is empty [message #1053800 is a reply to message #1048315] Tue, 07 May 2013 15:59 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
Do you see any entries in the Error Log View?
Re: "Switch to" list is empty [message #1058993 is a reply to message #1053800] Thu, 16 May 2013 07:28 Go to previous messageGo to next message
Andreas Lang is currently offline Andreas LangFriend
Messages: 3
Registered: April 2013
Junior Member
Thanks for replying Smile

My .log-File form Eclipse:
!SESSION 2013-05-16 08:58:07.868 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.6.0_27
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.ui 4 0 2013-05-16 09:00:02.113
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id :  <langand@hs-weingarten.de> 1366110678 +
	at org.eclipse.jgit.lib.ObjectId.fromHexString(ObjectId.java:245)
	at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:220)
	at org.eclipse.jgit.storage.file.ReflogEntry.<init>(ReflogEntry.java:70)
	at org.eclipse.jgit.storage.file.ReflogReader.getReverseEntries(ReflogReader.java:139)
	at org.eclipse.jgit.storage.file.ReflogReader.getReverseEntries(ReflogReader.java:88)
	at org.eclipse.egit.ui.internal.actions.SwitchToMenu.createDynamicMenu(SwitchToMenu.java:133)
	at org.eclipse.egit.ui.internal.actions.SwitchToMenu.fill(SwitchToMenu.java:110)
	at org.eclipse.ui.internal.menus.DynamicMenuContributionItem.fill(DynamicMenuContributionItem.java:125)
	at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:746)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:827)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:477)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:470)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:500)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:255)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1281)
	at org.eclipse.swt.widgets.Menu.gtk_show(Menu.java:676)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1738)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4371)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2342)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3184)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


Sorry for posting the log. I can't post links.
Re: "Switch to" list is empty [message #1060321 is a reply to message #1058993] Fri, 24 May 2013 07:00 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
It seems that your repository is corrupt.

Can you run git-fsck from the command-line?
Re: &quot;Switch to&quot; list is empty [message #1060438 is a reply to message #1058993] Fri, 24 May 2013 15:59 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Andreas Lang skrev 2013-05-16 09.28:

> !ENTRY org.eclipse.ui 4 0 2013-05-16 09:00:02.113
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id : <langand@xxxxxxxx> 1366110678 +

This comes from parsing the .git/logs/HEAD file.

Run this command:

grep -B1 -A1 1366110678 .git/logs/HEAD"

Post the result. Make sure spaces and line breaks (CR and LF) are preserved. It might be that the
reflog is corrupt and the source might be a commit or user.name user.email setting that confuses
git/jgit which then produces a corrupt reflog.

>
> Sorry for posting the log. I can't post links.

That's fine.
Re: "Switch to" list is empty [message #1061900 is a reply to message #1048315] Tue, 04 June 2013 15:05 Go to previous message
Andreas Lang is currently offline Andreas LangFriend
Messages: 3
Registered: April 2013
Junior Member
Output from "git fsck"
Checking object directories: 100% (256/256), done.
error in commit 287b17e19e829318a7f94dae7dfa86a4559c1636: invalid author/committer line - bad email
error in commit c7a073f7cc2ef8f2d64dadace4c0b3fb83a29b62: invalid author/committer line - bad email
error in commit cd54d81a392f4524ed06bc9621c4c007c2ef5071: invalid author/committer line - bad email
Checking objects: 100% (364/364), done.


Output from "grep -B1 -A1 1366110678 .git/logs/HEAD"
287b17e19e829318a7f94dae7dfa86a4559c1636 cd54d81a392f4524ed06bc9621c4c007c2ef5071 Andreas Lang
 <langand@xxx.de> 1366110678 +0200	commit: loginmanager() hinzugefĆ¼gt
cd54d81a392f4524ed06bc9621c4c007c2ef5071 c7a073f7cc2ef8f2d64dadace4c0b3fb83a29b62 Andreas Lang <langand@xxx.de> 1366110698 +0200	checkout: moving from login_serv to rfc

Previous Topic:Where are the icon decorations?
Next Topic:Use of RepositoryListener (especially RefsChangedListener)
Goto Forum:
  


Current Time: Sun Nov 23 01:05:29 GMT 2014

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

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