git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EGIT branch checkout errors
@ 2008-11-12 15:50 Chris Dumoulin
  2008-11-12 22:48 ` Robin Rosenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Dumoulin @ 2008-11-12 15:50 UTC (permalink / raw)
  To: git

Using EGIT in Eclipse, I'm able to create a new branch, but not able to 
checkout a branch. When I try Team->Branch...->Checkout, nothing 
happens, so I launched Eclipse from a terminal to see any output it 
might be giving. Here's what I got:

java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:415)
    at 
org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at 
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
    at 
org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2487)
    at 
org.spearce.egit.ui.internal.actions.BranchAction.run(BranchAction.java:53)
    at 
org.eclipse.team.internal.ui.actions.TeamAction.runWithEvent(TeamAction.java:548)
    at 
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
    at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    at 
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    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:386)
    at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.NullPointerException
    at org.spearce.jgit.lib.GitIndex.addEntry(GitIndex.java:746)
    at 
org.spearce.jgit.lib.WorkDirCheckout.checkoutTwoTrees(WorkDirCheckout.java:146)
    at 
org.spearce.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckout.java:137)
    at 
org.spearce.egit.core.op.BranchOperation.checkoutTree(BranchOperation.java:133)
    at org.spearce.egit.core.op.BranchOperation.run(BranchOperation.java:69)
    at 
org.spearce.egit.ui.internal.actions.BranchAction$1.run(BranchAction.java:58)
    at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Any help would be appreciated.
Thanks,
Chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: EGIT branch checkout errors
  2008-11-12 15:50 EGIT branch checkout errors Chris Dumoulin
@ 2008-11-12 22:48 ` Robin Rosenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Robin Rosenberg @ 2008-11-12 22:48 UTC (permalink / raw)
  To: Chris Dumoulin; +Cc: git

onsdag 12 november 2008 16:50:24 skrev Chris Dumoulin:
> Using EGIT in Eclipse, I'm able to create a new branch, but not able to 
> checkout a branch. When I try Team->Branch...->Checkout, nothing 
> happens, so I launched Eclipse from a terminal to see any output it 
> might be giving. Here's what I got:

Something is wrong in the WorkDirCheckout class. Could you send these
things

git ls-tree -r HEAD
git-ls-tree -r branch-you-try-to-switch-to
git diff --name-only

Then post it to http://code.google.com/p/egit/issues/list

-- robin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-12 22:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 15:50 EGIT branch checkout errors Chris Dumoulin
2008-11-12 22:48 ` Robin Rosenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).