Community
Participate
Working Groups
Build Identifier: 20110218-0911 I am trying to develop a DSL debugger and I decided to use Acceleo and its traceability model to link between DSL and generated GPL. However, when I try print an enum in my template, Acceleo does not generate traceability information for that text. Reproducible: Always Steps to Reproduce: To reproduce, consider the following testcase. I have this simple Xtext grammar of my DSL: Model: (statements+=Statement)*; Statement: kind=CommandKind ";"; enum CommandKind: STEP="step" | TURNLEFT="turnLeft" | TURNRIGHT="turnRight"; Then I use this Acceleo template to generate the code: [template public generate(m: Model)] [comment @main /] [file ('output', false, 'UTF-8')] [for (st: Statement | m.statements)] [self.kind.toString() /]; [/for] [/file] [/template] I use the following DSL model: step; turnLeft; turnRight; I try to generate the code and set Acceleo to show the traceability model in the result view. Then I double click at one of the statements in the view and generated code for that statement should get highlighted in the editor. However, only the indentation before the command and the semicolon after the command gets highlighted. Text generated using [self.kind.toString() /] is not linked by the traceability model.
A fix has been contributed on HEAD with a unit test for this case, the fix will be available in Acceleo 3.2.0
Closing resolved bugs