Open sergio-otero opened 6 years ago
cc @meysholdt @dhuebner
code does
if (originalEObjectRegion == null) {
strategies.add(new SerializeRecursiveStrategy(originalEObjectRegion, obj, modified));
continue;
}
so that SerializeRecursiveStrategy is initialized with null
to reproduce with our tests
"#22" ChildWithSubChilds
;
ChildWithSubChilds:
{ChildWithSubChilds}
children+=ChildWithSubChild*
;
ChildWithSubChild:
{ChildWithSubChild}"subs"
subChilds+=SubChild*
;
SubChild: name=ID;
@Test
def void testOptionalChildListInsertIntoEmpty2b() {
recordDiff(ChildWithSubChilds, "#22") [
children += createChildWithSubChild => [subChilds += createSubChild =>[name="A"]]
children.head => [subChilds += createSubChild =>[name="A2"]]
] === '''
NOT ADAPED YET
'''
}
@meysholdt do you have any hints`?
ping @meysholdt
@meysholdt Moving to 2.15. If you see a chance to fix it for 2.14 then retarget it again. Otherwise please work on it for 2.15.
https://www.eclipse.org/forums/index.php/m/1779172
I'm having problems in Xtext 2.13 with quickfixes that i didn't have in 2.12, i suppose related to the changes applied to support multiple quickfix resolutions.
The problem appears when a node A is added to the AST tree and then another node is added as a child of A
The problem happens with a single quickfix, but it can be avoided somehow waiting to add the node A until it's fully set. The problem is much more difficult to solve if several quickfixes are applied together and the business rules are complex
As an example, i've made a simple test case
Example code: