Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [EPackage import] "Make sure the EPackage has been registered." error
[EPackage import] "Make sure the EPackage has been registered." error [message #888554] Mon, 18 June 2012 09:26 Go to next message
Felix Feisst is currently offline Felix FeisstFriend
Messages: 20
Registered: February 2012
Location: Germany
Junior Member
In my grammar, I switched from a generated EPackage to an imported EPackage.

In my grammar file I removed the
generate ... ...

and added an
import "h ttp://www...." as ast

No errors occured in the editor.

In my generator mwe2 file I did what the manual suggested:

bean = StandaloneSetup {
    scanClassPath = true
    platformUri = "${runtimeProject}/.."
    
    registerGeneratedEPackage = "package.of.AstPackage"
    registerGenModelFile = "platform:/resource/.../path/to/Ast.genmodel"

}


I executed the generator, also no errors occured.

However, when I start the plugin or even try to run a parser unit test, I receive an exception:
org.eclipse.xtext.parser.ParseException: java.lang.IllegalStateException: Unresolved proxy htt p://www....#//.... Make sure the EPackage has been registered.


In the manual, I found a section saying I may have to preload the resources and I added the line, even so I'm not sure if I have to do this:
language = {
      loadedResource = "platform:/resource/.../path/to/Ast.ecore"
      uri = grammarURI

But that didn't change anything.

I also removed the ecore.EcoreGeneratorFragment from the workflow but that has no effect.

Can someone help me here?

Regards,
Felix

Re: [EPackage import] "Make sure the EPackage has been registered." error [message #888559 is a reply to message #888554] Mon, 18 June 2012 09:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Of you use an existing encore this has to be registered to eclipse
from the plugin contributing it. This is done via plugin XML. (See
plugin XML of a normal Xtext run time project)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [EPackage import] "Make sure the EPackage has been registered." error [message #889429 is a reply to message #888559] Tue, 19 June 2012 08:19 Go to previous message
Felix Feisst is currently offline Felix FeisstFriend
Messages: 20
Registered: February 2012
Location: Germany
Junior Member
Thanks, I don't have experience with EMF, your hint solved my problem.
Previous Topic:Using index in LinkingService
Next Topic:How to extend default scope with attributes from superclass?
Goto Forum:
  


Current Time: Thu Apr 25 11:02:28 GMT 2024

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

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

Back to the top