Weird marker error in Domain-Model example [message #1305804] |
Sun, 20 April 2014 12:54  |
Eclipse User |
|
|
|
Dear all,
I started experimenting with XText over Easter but I found a mysterious bug in the Domain-Model example:
Steps to reproduce:
- Download the Eclipse version from the www.xtext.org/downloads Windows 64-Bit and install it (I'm using Windows 7 with jdk 1.7)
- Create the demo project via New->Xtext->Examples->Xtext Domain-Model Example
- Generate the classes by launching the GenerateDomainmodelLanguage.mwe2
- Start the Runtime Workspace (had to apply -Xmx1024m -XX:MaxPermSize=256m as vm arguments)
- Create a Java Project
- Create a file 'sample.dmodel' in the src folder
At this point xtext asks to apply the nature which was a good sign.
The language is also recognized. When I enter the following lines
package org.test {
entity Test {
one: String
two: Integer
op runHere() {
val test = 4;
if (test < 5) {
// expression of if-clause is marked as error
}
}
}
}
an error marker is applied to '<' saying
The code completion and everything else works, just the if statements seems to be buggy.
What am I doing wrong?
Have a nice easter weekend,
Stephan
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27191 seconds