Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 484855

Summary: [AQL] current contextual variable is not proposed in completion with lambda expressions
Product: [Modeling] Sirius Reporter: Etienne Juliot <etienne.juliot>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED FIXED QA Contact: Laurent Redor <laurent.redor>
Severity: normal    
Priority: P3 CC: esteban.dugueperoux, laurent.fasani, laurent.redor, pierre-charles.david, yvan.lussaud
Version: 3.1.0Keywords: triaged
Target Milestone: 4.0.0M6   
Hardware: All   
OS: All   
Whiteboard:

Description Etienne Juliot CLA 2015-12-23 08:49:36 EST
In a lambda expression, the current context is not propose in the completion.
Example with basic family, on Man:
" aql:self.members->sortedBy(myPerson | myP )"

Complexion after "myP" should propose "myPerson".

For information, validation and runtime works if myPerson is written by hand.
Comment 1 Yvan Lussaud CLA 2015-12-23 09:15:32 EST
This has been fixe with this commit:
https://git.eclipse.org/r/#/c/61349/

I think it is a pure AQL issue. But someone from Sirius might want to double check it...
Comment 2 Laurent Fasani CLA 2016-01-11 05:25:36 EST
The issue is reproducible on Sirius 3.1.1 but is fixed on Sirius 4 master (January the 11th)
Comment 3 Pierre-Charles David CLA 2016-02-05 07:24:19 EST
The fix was merged in AQL, and I confirm it works fine now on a current Sirius.
Comment 4 Laurent Redor CLA 2016-05-23 11:03:56 EDT
Verified on Sirius 4.0.0 RC1 (4.0.0.201605180923)
Comment 5 Pierre-Charles David CLA 2016-06-24 08:01:39 EDT
Available in Sirius 4.0.0.