I have two Xtext(version-2.11) Projects, called A and B. B is dependent on A. Both of these Xtext projects have large Xtext file.(>1000 lines of code)
When I try to generate Xtext Artifacts for Project B, it gives me below error:
28166 [main] INFO text.xtext.generator.XtextGenerator - Generating common infrastructure 28171 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems running workflow org.xtext.example.mydsl.GenerateMyDslB: org.eclipse.xtext.util.RuntimeIOException: java.io.FileNotFoundException: b.parent\b..\b\src-gen\org\xtext\example\mydsl\parser\antlr\internal\InternalMyDslBLexer.java (The system cannot find the file specified) at org.eclipse.xtext.generator.JavaIoFileSystemAccess.readTextFile(JavaIoFileSystemAccess.java:257)
I have tried a various kind of solution from the web, but it didn't work.
For example: mwe2 file modification with
parserGenerator = {
antlrParam = "-Xmaxinlinedfastates"
antlrParam = "65534"
antlrParam = "-Xmaxswitchcaselabels"
antlrParam = "32000"
antlrParam = "-Xminswitchalts"
antlrParam = "1"
options = auto-inject {
classSplitting = true
fieldsPerClass = "40"
methodsPerClass = "40"
}
}
Does someone has any pointer about this error?
The issue gets resolved by resolving ambiguity in the grammar.