Community
Participate
Working Groups
org.eclipse.sirius.common.acceleo.aql.business.internal.AQLSiriusInterpreter.evaluate(EObject, String) this method will throw an exception if the diagnostic has an ERROR severity... but it will completely throw away the children of that diagnostic, along with potential errors they may hold.
Most likely the cause for Bug 477217 , which cannot be reproduced exactly as the steps mention (though it was reproduced when using a semantic element selected in the model explorer view
I believe this was mostly fixed by https://git.eclipse.org/r/#/c/53690/8, which introduces the new IInterpreterWithDiagnostic especially for this purpose. However the new capability was not completely exposed to client code. It should be fixed once https://git.eclipse.org/r/56849 is merged.
Fixed by 90f4cc30054957aa8376572ed9391a02882687d1.
Validated on Sirius 3.1.0.201510130903 and AQL 4.0.0.201510121214 Note that eContents(<type> and eAllContents(<type>) works (tested on ecore and a model from garden metamodel attached on Bug 477217). Note that Bug 479726 has been created for an issue when there is no selected Viewpoint.
Available in Sirius 3.1.0.