Community
Participate
Working Groups
Tested on version 3.6.1 20150902 SCenario: meta-modele : A contains a list of B modele : A1 contains B1 and B2 From Interpreter view, select A1 and type the following query aql:self.eContents()->filter(myMetaModel::B) fails with no message in error log Note that it would be nice if eContents(<type>) and eAllContents(<type>) were implemented by aql
Created attachment 256639 [details] metamodel garden
The bug is reproductible with the attached meta model Create some data with ecore reflexive editor and select a EObject from model explorer to test expression in interpreter view
New Gerrit change created: https://git.eclipse.org/r/57297
Gerrit change https://git.eclipse.org/r/57297 was merged to [master]. Commit: http://git.eclipse.org/c/acceleo/org.eclipse.acceleo.git/commit/?id=eb3208331c37645166ab21887c12832a3c388db4
Note that the evaluation works when the selection comes from the ReflexiveEditor but not from the model explorer (the model is in a modeling project, there is no selected Veiwpoint).
You need to register your EPackage using IQueryEnvironment.registerEPackage() before AQL recognizes your EClassifier.
Bug 479726 has been created in Sirius: it seems that when there no selected viewpoint, the list of packages to register is always empty when the query environment is created or updated.
Not reproducible with pure AQL. Feel free to reopen if fixing bug 479726 doesn't fix this one.