context-mapper-dsl icon indicating copy to clipboard operation
context-mapper-dsl copied to clipboard

Context Map type disappears when applying AR

Open stefan-ka opened this issue 5 years ago • 1 comments

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:

  1. Specify type on context map
  2. Apply any AR
  3. Type is no longer specified

Expected behavior The type should be unparsed as all other attributes.

stefan-ka avatar Sep 04 '19 12:09 stefan-ka

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:

image

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:

image

In this case everything works fine.

stefan-ka avatar Oct 21 '19 09:10 stefan-ka