Twig-Eclipse-Plugin icon indicating copy to clipboard operation
Twig-Eclipse-Plugin copied to clipboard

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].)

Open shakaran opened this issue 6 years ago • 4 comments

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 avatar Apr 04 '18 16:04 shakaran

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

shakaran avatar Apr 04 '18 16:04 shakaran

Have you example file?

zulus avatar Apr 04 '18 20:04 zulus

@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 avatar Apr 05 '18 04:04 shakaran

@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

shakaran avatar Apr 05 '18 08:04 shakaran