Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » error occurred during: "Computing Model Differences"
error occurred during: "Computing Model Differences" [message #1268221] Mon, 10 March 2014 03:56 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
I have just checked out Luna 4.4M5 modeling package which includes EMF Compare.
I checked out my project containing the ecore models to compare from SVN and tried to compare with "base from working copy" after a simple change (just added an EString attribute to an EClass).
The comparison fails with these error messages:

An internal error occurred during: "Computing Model Differences".
Path must include project and resource name: /test.ecore


What do I miss here?
Re: error occurred during: "Computing Model Differences" [message #1268224 is a reply to message #1268221] Mon, 10 March 2014 04:01 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
And the stack trace from the error log:

java.lang.IllegalArgumentException: Path must include project and resource name: /core.ecore
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2157)
	at org.eclipse.core.internal.resources.Container.getFile(Container.java:208)
	at org.eclipse.emf.compare.ide.utils.ResourceUtil.createURIFor(ResourceUtil.java:245)
	at org.eclipse.emf.compare.ide.internal.utils.NotLoadingResourceSet.loadResource(NotLoadingResourceSet.java:121)
	at org.eclipse.emf.compare.ide.internal.utils.NotLoadingResourceSet.create(NotLoadingResourceSet.java:72)
	at org.eclipse.emf.compare.ide.ui.internal.logical.ComparisonScopeBuilder.createScope(ComparisonScopeBuilder.java:374)
	at org.eclipse.emf.compare.ide.ui.internal.logical.ComparisonScopeBuilder.createMinimizedScope(ComparisonScopeBuilder.java:349)
	at org.eclipse.emf.compare.ide.ui.internal.logical.ComparisonScopeBuilder.build(ComparisonScopeBuilder.java:142)
	at org.eclipse.emf.compare.ide.ui.internal.logical.ComparisonScopeBuilder.create(ComparisonScopeBuilder.java:173)
	at org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.EMFCompareStructureMergeViewer.compareInputChanged(EMFCompareStructureMergeViewer.java:642)
	at org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.EMFCompareStructureMergeViewer$CompareInputChangedJob.run(EMFCompareStructureMergeViewer.java:131)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)


Comparing two versions (of the same model) from the local history seems to work.
Re: error occurred during: "Computing Model Differences" [message #1270106 is a reply to message #1268224] Wed, 12 March 2014 09:58 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1621
Registered: July 2009
Senior Member
Hi,

Comparing files located on an SVN repository is not yet possible, with issues such as descibed here or there on bugzilla happening when you try.

Yours is actually the second of these two.

We are focusing our efforts on Git support for now, but you might be interested in looking at my fourth comment on bug 397955 if you wish to try and fix this yourself (we'll happily look at patches fixing this issue). That being said, if you cannot spend time on understanding our code base to contribute a fix, you could move this bug forward by contacting Obeo for sponsored work (see also our support page).

Laurent Goubet
Obeo
Previous Topic:Custom merge viewer
Next Topic:[EMF Compare] Origin of a moved element in a 'MOVE' change!
Goto Forum:
  


Current Time: Wed Jul 30 11:14:33 EDT 2014

Powered by FUDForum. Page generated in 0.04160 seconds