Bug 477217 - AQL : filter service fails with no error message
Summary: AQL : filter service fails with no error message
Status: CLOSED WORKSFORME
Alias: None
Product: Acceleo
Classification: Modeling
Component: Query Language (show other bugs)
Version: 3.6.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Yvan Lussaud CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 479726 470460
  Show dependency tree
 
Reported: 2015-09-11 11:00 EDT by Laurent Fasani CLA
Modified: 2015-10-28 06:04 EDT (History)
2 users (show)

See Also:


Attachments
metamodel garden (37.92 KB, application/zip)
2015-09-17 09:02 EDT, Laurent Fasani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Fasani CLA 2015-09-11 11:00:51 EDT
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
Comment 1 Laurent Fasani CLA 2015-09-17 09:02:03 EDT
Created attachment 256639 [details]
metamodel garden
Comment 2 Laurent Fasani CLA 2015-09-17 09:03:50 EDT
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
Comment 3 Eclipse Genie CLA 2015-10-02 10:10:31 EDT
New Gerrit change created: https://git.eclipse.org/r/57297
Comment 5 Maxime Porhel CLA 2015-10-14 04:26:33 EDT
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).
Comment 6 Yvan Lussaud CLA 2015-10-14 05:14:46 EDT
You need to register your EPackage using IQueryEnvironment.registerEPackage() before AQL recognizes your EClassifier.
Comment 7 Maxime Porhel CLA 2015-10-14 05:19:04 EDT
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.
Comment 8 Laurent Goubet CLA 2015-10-28 06:04:32 EDT
Not reproducible with pure AQL. Feel free to reopen if fixing bug 479726 doesn't fix this one.