Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Error with xtext (ui editor)(The code for the static initializer is exceeding the 65535 bytes limit)
Error with xtext (ui editor) [message #1694247] Sun, 03 May 2015 18:30 Go to next message
tarik majid is currently offline tarik majidFriend
Messages: 2
Registered: April 2015
Junior Member
hi,
i have wrote an xtext grammer with no errors. but when i lunch the editor for my xtext grammar i get this error :

"The code for the static initializer is exceeding the 65535 bytes limit".

please how can i resolve this error.

thanks.
Re: Error with xtext (ui editor) [message #1694361 is a reply to message #1694247] Mon, 04 May 2015 19:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13885
Registered: July 2009
Senior Member
Hi,

getting the complete trace would be helpful.
but you may follow https://www.eclipse.org/forums/index.php/t/364871/ anyway


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Error with xtext (ui editor) [message #1694554 is a reply to message #1694361] Wed, 06 May 2015 09:24 Go to previous message
tarik majid is currently offline tarik majidFriend
Messages: 2
Registered: April 2015
Junior Member
Hi,

Thank you for the help. I found the solution in the link that you mention.

I replace in the .mwe2 file these lines:

fragment = parser.antlr.XtextAntlrGeneratorFragment auto-inject {
    			options = {
    		//      backtrack = true
    				classSplitting=true
    				methodsPerClass = "100"
    				fieldsPerClass = "100"
    			}
    		}
fragment = parser.antlr.XtextAntlrUiGeneratorFragment auto-inject {
    			options = {
    		//      backtrack = true
    				classSplitting=true
    				methodsPerClass = "100"
    				fieldsPerClass = "100"
    			}
    		}


Thanks a lot.
Previous Topic:xtext-utils updates?
Next Topic:Cheapest way to traverse a model
Goto Forum:
  


Current Time: Sat Apr 17 23:36:14 GMT 2021

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

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

Back to the top