In my grammar, I switched from a generated EPackage to an imported EPackage.
In my grammar file I removed the
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