|Problems with Xtext and XBase in version 2.8.0.v201503090534 [message #1666026]
||Wed, 11 March 2015 14:02
| Som 2015
Registered: March 2015
I am trying to develop a DSL using Xtext and Xbase. I would like to include some Java-like statements in my DSL. However, it seems that existing examples and tutorials do not work with Xtext Redistributable 2.8.0.v201503090534.
Here are two ways that I tried:
1- I created an example DSL using standard Xtext project, which is named MyDSL
2- I tried to add some XBase expressions, and added "with org.eclipse.xtext.xbase.Xbase" to my grammar, as it is expected. But just adding this is enough to get the following exception when I try to compile a program written in MyDSL: (MyDSLTester is the name of tester project)
1 [Worker-1] ERROR org.eclipse.xtext.builder.impl.XtextBuilder - Java Model Exception: Java Model Status [MyDSLTesterdoes not exist]
java.lang.RuntimeException: Java Model Exception: Java Model Status [SOM does not exist]
3- The second way was to try to compile existing examples, from the book, using Xtext 2.8... I tried with the example "org.example.xbase.entities". But, when I try to generate XText artifacts, the java classes for grammar rules (e.g. Entity, Attribute, Operation) are not generated.
Can someone help me?
Powered by FUDForum
. Page generated in 0.02590 seconds