git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [EGIT] assertion failure when renaming file

From
Marcus Better <marcus@better.se>
Date
Mar 19, 2009, 19:45 UTC
Message-ID
<gpu8hc$v9n$1@ger.gmane.org>
In-Reply-To
<200903171940.21617.robin.rosenberg.lists@dewire.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robin Rosenberg wrote:
> There  are some ways of corrupting a repo, i.e. the association between
> the Git provider and the project that results in wierd behaviours. The
> ones I know of are related to renaming and moving projects tracked by
> EGit, which works minus-well.
Yes, I think I moved the project once.
I also get a message about a NPE "when scanning the repository for changes" shortly after starting Eclipse:
!ENTRY org.spearce.egit.core 4 0 2009-03-19 20:22:12.776
!MESSAGE Git team provider configuration has gone missing.
!STACK 0
java.io.FileNotFoundException: /home/marcus/.workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/wrt-
widget/org.spearce.egit.core/GitProjectData.properties (Filen eller katalogen finns inte)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at org.spearce.egit.core.project.GitProjectData.load(GitProjectData.java:398)
	at org.spearce.egit.core.project.GitProjectData.get(GitProjectData.java:162)
	at org.spearce.egit.core.GitProvider.getData(GitProvider.java:66)
	at org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)
	at org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:161)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.eclipse.ui.workbench 4 2 2009-03-19 20:22:12.777
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
	at org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)
	at org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:161)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.ui 4 4 2009-03-19 20:22:12.777 !MESSAGE Exception in Decorator

!ENTRY org.eclipse.ui 4 4 2009-03-19 20:22:12.778
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)
	at org.spearce.egit.ui.internal.decorators.GitLightweightDecorator.decorate(GitLightweightDecorator.java:161)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:72)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:356)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:338)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:374)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:334)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.spearce.egit.core 4 0 2009-03-19 20:22:23.667
!MESSAGE Git team provider configuration has gone missing.
!STACK 0
java.io.FileNotFoundException: /home/marcus/.workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/wrt-
widget/org.spearce.egit.core/GitProjectData.properties (Filen eller katalogen finns inte)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at org.spearce.egit.core.project.GitProjectData.load(GitProjectData.java:398)
	at org.spearce.egit.core.project.GitProjectData.get(GitProjectData.java:162)
	at org.spearce.egit.core.GitProvider.getData(GitProvider.java:66)
	at org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)
	at org.spearce.egit.ui.Activator$RCS.run(Activator.java:321)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.spearce.egit.ui 4 0 2009-03-19 20:22:23.710
!MESSAGE An error occurred while scanning for changes. Scanning aborted
!STACK 0
java.lang.NullPointerException
	at org.spearce.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:235)
	at org.spearce.egit.ui.Activator$RCS.run(Activator.java:321)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Could you try with a fresh workspace (you can keep the workdir as-is)?
Yes, that fixes it.
Cheers,
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknCoOYACgkQXjXn6TzcAQkbsgCfbRnEwiSjIo9yu9ipk9Tps6cn Y70An2sxhtz+xtd0wTP2PODAR7jxj4Qc =taeS -----END PGP SIGNATURE-----

Previous: Robin Rosenberg
Message 3 of 3 in “[EGIT] assertion failure when renaming file”
  1. Marcus BetterMar 17, 2009
  2. Robin RosenbergMar 17, 2009
  3. Marcus BetterMar 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.