Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream _inp
Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream _inp [message #1626094] Fri, 20 February 2015 20:38 Go to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi guys,

I am using the Xtext 2.7.3 and now my grammar goes big so I am getting the following error:

The code of method specialStateTransition(int, IntStream) is exceeding the 65535 bytes limit InternalDSLLexer.java

I tried using the option "classSplitting=true" but it is not working.

I am using the following fragments

// Splitting lexer and parser generation, this is use to replace the default fragment "parser.antlr.XtextAntlrGeneratorFragment"
fragment = org.eclipse.xtext.generator.parser.antlr.ex.rt.AntlrGeneratorFragment {
options = {
classSplitting=true
}
}

// Generates a more lightweight Antlr parser and lexer tailored for content assist, it is used to replace "parser.antlr.XtextAntlrUiGeneratorFragment"
fragment = org.eclipse.xtext.generator.parser.antlr.ex.ca.ContentAssistParserGeneratorFragment {
options = {
classSplitting=true
}
}

Does anyone any idea about this?

Regards,
Luis
Re: Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream [message #1626113 is a reply to message #1626094] Fri, 20 February 2015 20:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
The Serializer Generation has nothing to do with the parser generation. so adjusting the parser generation will still not help
there where a couple of bugs on the serializer

https://bugs.eclipse.org/bugs/show_bug.cgi?id=458705
https://bugs.eclipse.org/bugs/show_bug.cgi?id=457579

can you check if it one of the problems and if so it is fixed with the latest nightlies?
if not please file a bug


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream [message #1626135 is a reply to message #1626113] Fri, 20 February 2015 21:09 Go to previous messageGo to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Christian,

This method is in my class InternalDSLLexer.java so I am not sure if this has any relation with the Serializer. I think this class is generated by antler

Regards,
Luis
Re: Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream [message #1626246 is a reply to message #1626135] Fri, 20 February 2015 22:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
then your headline is missleading

the lexer is indeed created by the antlr fragment.
did you try to set other params in the options

(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349992)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream [message #1629006 is a reply to message #1626094] Sun, 22 February 2015 12:05 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Luis,

at a first glance it looks to me that you use quite a few complex
syntactic predicates. What out for => in your grammar. You may want to
replace a few of these by the simple predicat ->.

Best,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Find help at http://xtext.itemis.com or xtext(@)itemis.com
Blog: zarnekow.blogspot.com
Twitter: @szarnekow
Google+: https://www.google.com/+SebastianZarnekow
Re: Method createSequence is exceeding the 65535 bytes limitspecialStateTransition(int s, IntStream [message #1629341 is a reply to message #1629006] Sun, 22 February 2015 16:38 Go to previous message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Sebastian,

I can try replacing the syntactic predicates for simple predicates, my fear of that is that I am not very sure about the main different between this two operators. I know that the documentation explains this but if I am right the simple predicate does not suit my needs.
As far as I understand the syntactic predicate will try to check first rule and in case of not matching it will try with the other alternatives but the simple predicate only will try with the first one and in case of error it will not continue with the other alternatives.

I have just upload a small workaround to solve my problems it could be useful for others.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=460481

P.S: Christian you are right the title is misleading, sorry about that, my fault for using copy and paste.

Regards,
Luis
Previous Topic:Adding comments to the node model of converted Xtext model
Next Topic:Local references replaced by non-local ones in ecore source generated from xcore
Goto Forum:
  


Current Time: Fri Apr 26 10:10:26 GMT 2024

Powered by FUDForum. Page generated in 0.03724 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top