Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329321 - Specifying 'expand' value with usage of variable fails with error
Summary: Specifying 'expand' value with usage of variable fails with error
Status: RESOLVED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: 1.0.1   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 04:19 EDT by Karsten Thoms CLA
Modified: 2010-11-08 11:10 EST (History)
1 user (show)

See Also:
sebastian.zarnekow: helios+
sebastian.zarnekow: indigo+


Attachments
Reproducing Example Projects (110.22 KB, application/octet-stream)
2010-11-03 04:21 EDT, Karsten Thoms CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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