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

Bug 329321

Summary: Specifying 'expand' value with usage of variable fails with error
Product: [Modeling] EMFT Reporter: Karsten Thoms <karsten.thoms>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.1Flags: sebastian.zarnekow: helios+
sebastian.zarnekow: indigo+
Target Milestone: M3   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Reproducing Example Projects none

Description Karsten Thoms CLA 2010-11-03 04:19:35 EDT
This workflow configuration fails with error:

-----------------------------
...
var templateroot = "templates::Template::main"
...
	component = org.eclipse.xpand2.Generator {
		expand = "${templateroot} FOREACH greetings"
        ...
        
    
81   [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Problems running workflow workflow.MyDslGenerator: 
[ERROR]: property 'expand' has wrong syntax : mismatched input 'greetings' expecting TEXT on line 1(Element: -UNKNOWN-; Reported by: Generator: generating 'templates::Template::mainFOREACH greetings' => src-gen)
java.lang.RuntimeException: Problems running workflow workflow.MyDslGenerator: 
[ERROR]: property 'expand' has wrong syntax : mismatched input 'greetings' expecting TEXT on line 1(Element: -UNKNOWN-; Reported by: Generator: generating 'templates::Template::mainFOREACH greetings' => src-gen)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:82)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Comment 1 Karsten Thoms CLA 2010-11-03 04:21:47 EDT
Created attachment 182273 [details]
Reproducing Example Projects

Run the workflow from the .generator project to reproduce the bug.
Comment 2 Sebastian Zarnekow CLA 2010-11-05 11:08:18 EDT
Fixed in master. Will be backported to 1.0.2
Comment 3 Sebastian Zarnekow CLA 2010-11-08 11:10:49 EST
Backported to Helios Maintenance