Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsThe method ruleeState() is undefined for the type InternalRpcIDLParser4
https://www.eclipse.org/forums/index.php/mv/msg/563499/1151388/#msg_1151388
The code for the static initializer is exceeding the 65535 bytes limit InternalRpcIDLParser.java /org.xtext.rpcIDL.ui/src-gen/org/xtext/ui/contentassist/antlr/internal line 23 Java Problem
I searched online regarding the solution and I found that I can fix it by adding these in XtextAntlrGeneratorFragment and XtextAntlrUIGeneratorFragment:
This got rid of the 65535 limit error but introduces a lot of other bugs.
This is the error:
The method ruleeState() is undefined for the type InternalRpcIDLParser4 InternalRpcIDLParser.java /org.xtext.rpcIDL/src-gen/org/xtext/parser/antlr/internal line 24785 Java Problem
eState is an enum in my grammar file. All the errors are about an undefined method rule of all my enum in the grammar file.
Does someone have an idea on how to fix this?]]>chris yo2013-10-23T10:07:16-00:00Re: The method ruleeState() is undefined for the type InternalRpcIDLParser4
https://www.eclipse.org/forums/index.php/mv/msg/563499/1152496/#msg_1152496
I tweak the values for fieldsPerClass and methodsPerClass, and set it to 200 and 500 respectively, which made the errors go away.
But the generator is not able to do the sorting algorithm correctly. I am using the
java.util.Comparator.
Question:
How will I compute for the appropriate values to be set in fieldsPerClass and methodsPerClass?
Aside from adding these options in XtextAntlrGeneratorFragment and XtextAntlrUIGeneratorFragment, are there other settings I need to do to make this work correctly?]]>chris yo2013-10-24T02:48:29-00:00Re: The method ruleeState() is undefined for the type InternalRpcIDLParser4
https://www.eclipse.org/forums/index.php/mv/msg/563499/1395203/#msg_1395203
Is there anything else I need to specify?
For now, I found that using the default numbers (rather then the recommended 200 e.g.) works around the problem but this feels fragile to me...
thanks
Stephan
]]>Stephan Herrmann2014-07-06T14:52:38-00:00