pulse00 / Twig-Eclipse-Plugin

Eclipse plugin for the twig templating language.
twig.dubture.com
MIT License
107 stars 24 forks source link

com.dubture.twig.core.documentModel.parser.TwigSourceParser: input could not be parsed correctly at position 89264 (Tried to push 0 on to a full stack[100].) #101

Open shakaran opened 6 years ago

shakaran commented 6 years ago

I mistakenly open this bug at eclipse, but it seems cames from this, so reporting here if useful

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

shakaran commented 6 years ago

As far I could check in the code, it seems that the lexer fails at some point accessing to the stack around this method in TwigTokenizer code https://github.com/pulse00/Twig-Eclipse-Plugin/blob/master/com.dubture.twig.core/Resources/parserTools/highlighting/TwigTokenizer.jflex#L149

zulus commented 6 years ago

Have you example file?

shakaran commented 6 years ago

@zulus cannot remember which one trigger this error, but since it is triggered often, I will post here as soon I see it again

shakaran commented 6 years ago

@zulus I gonna send you privately by email the file, since I could reproduce the issue. It seems that it breaks or trigger this error when I make comments like {# or #} and it has to parse the content before to I could write the #} or so