Seems to always happen when using the disambiguator, or at least in my example [0]. It reliably crashes with:


java.lang.IndexOutOfBoundsException: Index: 36, Size: 36
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.spoofax.jsglr.client.imploder.Tokenizer.getTokenAt(Tokenizer.java:81)
at org.spoofax.jsglr.client.imploder.Tokenizer.bindAstNode(Tokenizer.java:293)
at org.spoofax.jsglr.client.imploder.Tokenizer.initAstNodeBinding(Tokenizer.java:278)
at org.strategoxt.imp.runtime.parser.CustomDisambiguator.transferAttachments(CustomDisambiguator.java:85)
at org.strategoxt.imp.runtime.parser.CustomDisambiguator.disambiguate(CustomDisambiguator.java:72)
at org.strategoxt.imp.runtime.parser.SGLRParseController.parse(SGLRParseController.java:291)
at org.strategoxt.imp.runtime.parser.SGLRParseController.parse(SGLRParseController.java:1)
at org.strategoxt.imp.runtime.dynamicloading.DynamicParseController.parse(DynamicParseController.java:168)
at org.eclipse.imp.editor.ParserScheduler.run(ParserScheduler.java:86)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Note, this does not happen on the master branch [1] of the same project, using the same version of Spoofax.

[0] https://github.com/SRabbelier/goofax/commit/a0b550b12efd8b67a3304d8d056ed68d308d94ab

[1] https://github.com/SRabbelier/goofax/commit/c1868bd17fa585a39ee7d8817f0a827a2e4824b0

Submitted by Sverre Rabbelier on 17 May 2011 at 23:03

On 17 May 2011 at 23:06 Lennart Kats commented:

So what exactly are you trying to do? Is this related to Spoofax/359?



On 17 May 2011 at 23:49 Lennart Kats closed this issue.

On 17 May 2011 at 23:49 Lennart Kats commented:

Should be resolved in r22899. Was caused by the CustomDisambiguator adding attachments to terms that were shared.


On 17 May 2011 at 23:49 Lennart Kats tagged 1.0

On 18 May 2011 at 00:19 Lennart Kats tagged parser

On 18 May 2011 at 00:19 Lennart Kats tagged disambiguator

On 18 May 2011 at 00:19 Lennart Kats tagged @lennartkats

Log in to post comments