Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Errors creating Xtext Project From Existing Ecore Models
Errors creating Xtext Project From Existing Ecore Models [message #1787187] Mon, 21 May 2018 12:41 Go to next message
Eclipse UserFriend
Very new to Xtext here and I am looking for advice on ways forward. I have imported an XSD schema into an Ecore model using the project wizard. That seems to work just fine. I can view all the generated Java classes.

Next, I used the Xtext From Existing Ecore Model. Here is where I am getting errors. During the wizard, it seems to be asking for which class it should generate the Xtext grammar file for with 'Entry rule' drop down box.

The XSD I am using has many different entities described in it. It doesn't seem to matter which one I choose however, I always get the same kinds of errors:

1. Couldn't resolve reference to EPackage 'http://...' where it is the namespace of the XSD file.
2. The imported package refers to elements in the package registry instead of using the instances from the workspace for both the XMLType and Ecore namespaces.

I am sure this is something I am just missing, but how do I fix these references?
Re: Errors creating Xtext Project From Existing Ecore Models [message #1787455 is a reply to message #1787187] Fri, 25 May 2018 12:18 Go to previous message
Eclipse UserFriend
does the xsd ecore containing project has xtext nature and is on the classpath?
Previous Topic:how to write (existing) java 8 lambda in xtend
Next Topic:Accessing the `IBuildContext` from the `IShouldGenerate`
Goto Forum:
  


Current Time: Sat Jun 14 22:59:27 EDT 2025

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

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

Back to the top