Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext from ecore(how does text find dependencies)
Xtext from ecore [message #1740479] Sun, 14 August 2016 15:37 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 29
Registered: March 2011
Junior Member
All,

I tried to generate an Xtext project from ecore. The dialog had me select a *.genmodel, which I did, and the project was generated; but the *.xtext file is filled with errors. It can't find, for example, EString. Neither can it find the generated emf specified in the *.genmodel. I did include the project containing the *.genmodel on the eclipse build path like I would do for any eclipse project.

Am I doing thing right? Is this how text is supposed to work? I am proceeding under the assumption that Xtext uses the eclipse classpath, am I correct?

Thanks
Re: Xtext from ecore [message #1740480 is a reply to message #1740479] Sun, 14 August 2016 15:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
Does the gen model and ecore containing project have Xtext nature (right click configure convert to Xtext project)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Sun, 14 August 2016 16:58]

Report message to a moderator

Re: Xtext from ecore [message #1740486 is a reply to message #1740480] Sun, 14 August 2016 19:03 Go to previous messageGo to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 29
Registered: March 2011
Junior Member
Thanks that worked. What about the EMF dependencies, EString et al.? I added
Re: Xtext from ecore [message #1740491 is a reply to message #1740486] Mon, 15 August 2016 03:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
Usually emf should be on the classpath. Can you share a reproducing example?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext from ecore [message #1740534 is a reply to message #1740491] Mon, 15 August 2016 13:41 Go to previous message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 52
Registered: July 2016
Member
Thanks Christian, I discovered my problem is not actually with EMF dependencies, but within the *.genmodel I am using. It was created by others, I am taking the matter up with them.
Previous Topic:Accessing the Abstract Syntax Tree of imported files
Next Topic:Use extension for main JvmModelInferrer
Goto Forum:
  


Current Time: Fri Apr 26 17:43:23 GMT 2024

Powered by FUDForum. Page generated in 0.03811 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top