|
|
|
Re: Xtext import problem [message #1017667 is a reply to message #1017417] |
Tue, 12 March 2013 05:42  |
Eclipse User |
|
|
|
Hello,
I was just solving similar issue, thank you for help.
I got to the next stage - I can run MWE2 workflow without error.
The issue, which I am trying to solve now, is, that my generated InternalMySecondDslParser.java is full of errors as follows:
The method getSomeElementFromFirstDslAccess() is undefined for the type MySecondDslGrammarAccess
and the "Problems" window shows:
1. The project was not built since its build path is incomplete. Cannot find the class file for myFirstProject.services.MyFirstDslGrammarAccess$MyFirstDslContentElements. Fix the build path then try building this project.
2. myFirstProject.services.MyFirstDslGrammarAccess$MyFirstDslContentElements cannot be resolved. It is indirectly referenced from required .class files
part of my MWE2:
bean = StandaloneSetup {
scanClassPath = true
platformUri = "${runtimeProject}/.."
registerGeneratedEPackage = "myFirstProject.myFirstDsl.MyFirstDslPackage"
registerGenModelFile = "platform:/resource/myFirstProject/src-gen/.../MyFirstDsl.genmodel"
}
My second grammar:
grammar mySecondProject.MySecondDsl with myFirstProject.MyFirstDsl
generate mySecondDsl "http://www.dsl.my/mySecondDsl/MySecondDsl"
import "http://www.dsl.my/myFirstDsl/MyFirstDsl" as first
Model:
checks += MyCheck+
;
MyCheck:
'CHECK' check = Check // Check is defined in MyFirstDsl
;
and I have also added dependency to first project in Required Plug-ins in MANIFEST.MF.
I guess, that I did not "export" some elements from myFirstDsl, but I am not sure and I also do not know, how to do it.
Thank you
Michal
|
|
|
Powered by
FUDForum. Page generated in 0.12269 seconds