{"thread":{"id":"18343","subject":"[EGIT] assertion failure when renaming file","startedAt":"2009-03-17T09:43:52Z","lastAt":"2009-03-19T19:45:42Z","messageCount":3,"participants":["Marcus Better","Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"108211","messageId":"gpnrcv$mla$1@ger.gmane.org","threadId":"18343","inReplyTo":null,"subject":"[EGIT] assertion failure when renaming file","fromName":"Marcus Better","fromEmail":"marcus@better.se","sentAt":"2009-03-17T09:43:52Z","receivedAt":"2009-03-17T09:43:52Z","isPatch":false,"sender":{"key":"marcus@better.se","avatar":"https://gravatar.com/avatar/f35bd8577ede28717b97271eaaeef0cb8295b72caa678154d672f0ded63c6bdc?d=mp&s=160"},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi,\n\nI get this assertion failure from the Eclipse plugin 0.4.0.200903110025 whenever I try to rename an untracked file in Eclipse:\n\n!ENTRY org.eclipse.ltk.ui.refactoring 4 4 2009-03-17 10:27:06.399\n!MESSAGE null argument:\n!STACK 0\norg.eclipse.core.runtime.AssertionFailedException: null argument:\n\tat org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)\n\tat org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)\n\tat org.spearce.egit.core.GitMoveDeleteHook.<init>(GitMoveDeleteHook.java:37)\n\tat org.spearce.egit.core.GitProvider.getMoveDeleteHook(GitProvider.java:55)\n\tat org.eclipse.team.internal.core.MoveDeleteManager.getHookFor(MoveDeleteManager.java:34)\n\tat org.eclipse.team.internal.core.MoveDeleteManager.moveFile(MoveDeleteManager.java:87)\n\tat org.eclipse.core.internal.resources.Resource.unprotectedMove(Resource.java:1750)\n\tat org.eclipse.core.internal.resources.Resource.move(Resource.java:1420)\n\tat org.eclipse.ltk.core.refactoring.resource.RenameResourceChange.perform(RenameResourceChange.java:124)\n\tat org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)\n\tat org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:260)\n\tat org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)\n\tat org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:308)\n\tat org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.access$1(UIPerformChangeOperation.java:1)\n\tat org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation$1.run(UIPerformChangeOperation.java:66)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)\n\tat org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation$2.run(UIPerformChangeOperation.java:84)\n\tat org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)\n\tat org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)\n\tat org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)\n\tat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)\n\tat org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)\n\tat org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)\n\tat org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:317)\n\tat org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:558)\n\tat org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:154)\n\tat \norg.eclipse.ltk.ui.refactoring.resource.RenameResourceWizard$RenameResourceRefactoringConfigurationPage.performFinish(RenameResourceWizard.java:119)\n\tat org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:622)\n\tat org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:446)\n\tat org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)\n\tat org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)\n\tat org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)\n\tat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)\n\tat org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)\n\tat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)\n\tat org.eclipse.jface.window.Window.runEventLoop(Window.java:825)\n\tat org.eclipse.jface.window.Window.open(Window.java:801)\n\tat org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:144)\n\tat org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)\n\tat org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:156)\n\tat org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:37)\n\tat \norg.eclipse.jdt.internal.corext.refactoring.RefactoringExecutionStarter.startRenameResourceRefactoring(RefactoringExecutionStarter.java:442)\n\tat org.eclipse.jdt.internal.ui.refactoring.actions.RenameResourceAction.run(RenameResourceAction.java:43)\n\tat org.eclipse.jdt.ui.actions.RenameAction.run(RenameAction.java:110)\n\tat org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)\n\tat org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)\n\tat org.eclipse.jface.action.Action.runWithEvent(Action.java:498)\n\tat org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)\n\tat org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)\n\tat org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)\n\tat org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)\n\tat org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:472)\n\tat org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)\n\tat org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:882)\n\tat org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:571)\n\tat org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:512)\n\tat org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:127)\n\tat org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\n\tat org.eclipse.swt.widgets.Display.filterEvent(Display.java:1436)\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1157)\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)\n\tat org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1167)\n\tat org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1194)\n\tat org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:698)\n\tat org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2765)\n\tat org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:702)\n\tat org.eclipse.swt.widgets.Tree.gtk_key_press_event(Tree.java:1920)\n\tat org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1543)\n\tat org.eclipse.swt.widgets.Control.windowProc(Control.java:4506)\n\tat org.eclipse.swt.widgets.Display.windowProc(Display.java:4099)\n\tat org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)\n\tat org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5792)\n\tat org.eclipse.swt.widgets.Display.eventProc(Display.java:1177)\n\tat org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)\n\tat org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1550)\n\tat org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3031)\n\tat org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)\n\tat org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)\n\tat org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)\n\tat org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)\n\tat org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)\n\tat org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)\n\tat org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)\n\tat org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)\n\tat org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)\n\tat org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)\n\tat org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)\n\tat org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)\n\tat org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:616)\n\tat org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)\n\tat org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)\n\tat org.eclipse.equinox.launcher.Main.run(Main.java:1236)\n\tat org.eclipse.equinox.launcher.Main.main(Main.java:1212)\n\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.9 (GNU/Linux)\n\niEYEARECAAYFAkm/cNkACgkQXjXn6TzcAQkRiACgosbIeO1X+5rhgu8HaN4IlPY1\ngZkAnjH4YMIefzhsIOt+uoHPhOOFBGLG\n=mWTz\n-----END PGP SIGNATURE-----\n"},{"id":"108271","messageId":"200903171940.21617.robin.rosenberg.lists@dewire.com","threadId":"18343","inReplyTo":"gpnrcv$mla$1@ger.gmane.org","subject":"Re: [EGIT] assertion failure when renaming file","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2009-03-17T18:40:21Z","receivedAt":"2009-03-17T18:40:21Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"tisdag 17 mars 2009 10:43:52 skrev Marcus Better <marcus@better.se>:\n> Hi,\nHej,\n\n> I get this assertion failure from the Eclipse plugin 0.4.0.200903110025 whenever I try to rename an untracked file in Eclipse:\n\nThere  are some ways of corrupting a repo, i.e. the association between the Git provider and the project that results in wierd\nbehaviours. The ones I know of are related to renaming and moving projects tracked by EGit, which works minus-well.\n\nCould you try with a fresh workspace (you can keep the workdir as-is)?\n\n-- robin\n"},{"id":"108576","messageId":"gpu8hc$v9n$1@ger.gmane.org","threadId":"18343","inReplyTo":"200903171940.21617.robin.rosenberg.lists@dewire.com","subject":"Re: [EGIT] assertion failure when renaming file","fromName":"Marcus Better","fromEmail":"marcus@better.se","sentAt":"2009-03-19T19:45:42Z","receivedAt":"2009-03-19T19:45:42Z","isPatch":false,"sender":{"key":"marcus@better.se","avatar":"https://gravatar.com/avatar/f35bd8577ede28717b97271eaaeef0cb8295b72caa678154d672f0ded63c6bdc?d=mp&s=160"},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nRobin Rosenberg wrote:\n> There  are some ways of corrupting a repo, i.e. the association between\n> the Git provider and the project that results in wierd behaviours. The\n> ones I know of are related to renaming and moving projects tracked by\n> EGit, which works minus-well.\n\nYes, I think I moved the project once.\n\nI also get a message about a NPE \"when scanning the repository for changes\" shortly after starting Eclipse:\n\n!ENTRY org.spearce.egit.core 4 0 2009-03-19 20:22:12.776\n!MESSAGE Git team provider configuration has gone missing.\n!STACK 0\njava.io.FileNotFoundException: /home/marcus/.workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/wrt-\nwidget/org.spearce.egit.core/GitProjectData.properties (Filen eller katalogen finns inte)\n\tat java.io.FileInputStream.open(Native Method)\n\tat java.io.FileInputStream.<init>(FileInputStream.java:137)\n\tat org.spearce.egit.core.project.GitProjectData.load(GitProjectData.java:398)\n\tat org.spearce.egit.core.project.GitProjectData.get(GitProjectData.java:162)\n\tat org.spearce.egit.core.GitProvider.getData(GitProvider.java:66)\n\tat org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)\n\tat org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:161)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)\n\tat org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)\n\tat org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\n\n!ENTRY org.eclipse.ui.workbench 4 2 2009-03-19 20:22:12.777\n!MESSAGE Problems occurred when invoking code from plug-in: \"org.eclipse.ui.workbench\".\n!STACK 0\njava.lang.NullPointerException\n\tat org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)\n\tat org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:161)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)\n\tat org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)\n\tat org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\n\n!ENTRY org.eclipse.ui 4 4 2009-03-19 20:22:12.777\n!MESSAGE Exception in Decorator\n\n!ENTRY org.eclipse.ui 4 4 2009-03-19 20:22:12.778\n!MESSAGE java.lang.NullPointerException\n!STACK 0\njava.lang.NullPointerException\n\tat org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)\n\tat org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:161)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)\n\tat org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)\n\tat org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)\n\tat org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\n\n!ENTRY org.spearce.egit.core 4 0 2009-03-19 20:22:23.667\n!MESSAGE Git team provider configuration has gone missing.\n!STACK 0\njava.io.FileNotFoundException: /home/marcus/.workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/wrt-\nwidget/org.spearce.egit.core/GitProjectData.properties (Filen eller katalogen finns inte)\n\tat java.io.FileInputStream.open(Native Method)\n\tat java.io.FileInputStream.<init>(FileInputStream.java:137)\n\tat org.spearce.egit.core.project.GitProjectData.load(GitProjectData.java:398)\n\tat org.spearce.egit.core.project.GitProjectData.get(GitProjectData.java:162)\n\tat org.spearce.egit.core.GitProvider.getData(GitProvider.java:66)\n\tat org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)\n\tat org.spearce.egit.ui.Activator$RCS.run(Activator.java:321)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\n\n!ENTRY org.spearce.egit.ui 4 0 2009-03-19 20:22:23.710\n!MESSAGE An error occurred while scanning for changes. Scanning aborted\n!STACK 0\njava.lang.NullPointerException\n\tat org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)\n\tat org.spearce.egit.ui.Activator$RCS.run(Activator.java:321)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\n\n> Could you try with a fresh workspace (you can keep the workdir as-is)?\n\nYes, that fixes it.\n\nCheers,\n\nMarcus\n\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.9 (GNU/Linux)\n\niEYEARECAAYFAknCoOYACgkQXjXn6TzcAQkbsgCfbRnEwiSjIo9yu9ipk9Tps6cn\nY70An2sxhtz+xtd0wTP2PODAR7jxj4Qc\n=taeS\n-----END PGP SIGNATURE-----\n"}]}