context-mapper-dsl
context-mapper-dsl copied to clipboard
Context Map type disappears when applying AR
Describe the bug After the application of an AR, the attribute type is no longer specified on the context map.
To Reproduce Steps to reproduce the behavior:
- Specify type on context map
- Apply any AR
- Type is no longer specified
Expected behavior The type should be unparsed as all other attributes.
Seems to be a weird Xtext behavior regarding unordered groups.
In our language this only happens if the type is specified after the state, like this:
In this case, applying an AR (any model change) removes the type.
I haven't found a solution yet, but a workaround is to write the attributes in the order they are specified in the grammar. In our case, specify the type before the state like this:
In this case everything works fine.