viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Testing.queries plugin.xml full of duplicates #381

Closed istvanrath closed 11 years ago

istvanrath commented 11 years ago
!ENTRY org.eclipse.incquery.patternlanguage.emf.ui 2 0 2013-01-13 09:44:10.070
!MESSAGE [MatcherFactoryRegistry] Trying to register patterns with the same FQN multiple times. Check your plug-in configuration!
The following pattern FQNs appeared multiple times:
    org.eclipse.incquery.testing.queries.RecordRoleValue
    org.eclipse.incquery.testing.queries.UnexpectedMatchRecord
    org.eclipse.incquery.testing.queries.SubstitutionValue

Somehow, the plugin.xml of org.eclipse.incquery.testing.queries has gotten full of duplicates.

While the direct issue is resolved easily, we should investigate the core cause of entry duplication in plugin.xml files.

abelhegedus commented 11 years ago

The entry duplication has been an on-again-off-again bug in the past, and I remember at least one occasion when I cleaned the testing.queries plugin.xml. The issue is clearly non-trivial, so we have to take another round to tackle it.

In the meantime, we need a way to reproduce the duplication (actually, it is not duplication, just addition).

ujhelyiz commented 11 years ago

I have an idea what might cause the multiplication: when a build is not successful (e.g. crashes, etc.), the subsequent built might start from an invalid state, and then the clear does not work as expected.

Maybe we should think about a more error-resilient approach for identifying the generated extensions that depends less on the fqns of the patterns (similar to the generated annotation in case of EMF - at least if possible in a generic way for every extension definition).

ujhelyiz commented 11 years ago

Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=398828