Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cannot Create datatype XYZ(Error in the .Xtext file)
Cannot Create datatype XYZ [message #1689290] Mon, 23 March 2015 08:14 Go to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
Hi All,

I am experiencing a very strange error in the MyLang.xtext file where all of a sudden the whole terminals are marked as errors (underlined with red zigzag) and giving an error : cannot create datatype <terminal rule name>

I tried to close eclipse several times, generate the artifacts (gave an error and could not be generated) and close and reopen the file but it gave me the same error.

I am quite sure that there isn't typo or missing ; or : because the same file (EXACTLY THE SAME) was working fine yesterday and generating its artifacts so good

Any clue?
Re: Cannot Create datatype XYZ [message #1689413 is a reply to message #1689290] Mon, 23 March 2015 14:28 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13885
Registered: July 2009
Senior Member
Hi you have a package import for the ecore package? If not add it

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Create IDE for existing language
Next Topic:Extending existing files with Xtend
Goto Forum:
  


Current Time: Mon Apr 19 10:38:35 GMT 2021

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

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

Back to the top