|Re: Errors in generator when adding xtend/xpand nature [message #479241 is a reply to message #479046]
||Mon, 10 August 2009 12:39
| Sven Efftinge
Registered: July 2009
this is a bit confusing, but the Xtend and Xpand files refer the ecore
file which is to be generated by the Xtext generator.
So after creating a new project, the first thing you have to do is to
start the workflow in the main project in order to get the language
infrastructure generated. After that you should be able to enable the
Xpand nature without getting error markers, because the referenced ecore
model has been generated.
The nature is disabled by default in order to avoid having markers in
the newly created projects.
Edwin Park schrieb:
> I installed M2T Xtext and created a new default Xtext project. When I am
> in the org.xtext.example.mydsl.generator project trying to use code
> completion in the the Template.xpt xpand template, I get a dialog asking
> if I want to enable the Xtend nature to the project. If I say yes, the
> xtend/xpand builder is putting error marks in the xtend and xpand files
> as it does not seem to be able to find the imported myDsl model. If I
> run the mwe workflow, however, it succeeds even though the editors are
> reporting errors. Is there something else I need to do to get
> xtend/xpand to work correctly when the nature is added? Note: this is
> with Xtext SDK 0.7.1.v200907171100 on macosx and Java 1.6.
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Powered by FUDForum
. Page generated in 0.01790 seconds