When running analysisService.analyze with assertions enabled I get the following error:

java.lang.AssertionError
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:50)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:70)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.lambda$0(StrategoTermIndices.java:42)
at org.metaborg.meta.nabl2.stratego.StrategoTerms$1.caseAppl(StrategoTerms.java:224)
at org.metaborg.meta.nabl2.stratego.StrategoTerms.match(StrategoTerms.java:195)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:39)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:61)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:61)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.lambda$2(StrategoTermIndices.java:44)
at org.metaborg.meta.nabl2.stratego.StrategoTerms$1.caseList(StrategoTerms.java:232)
at org.metaborg.meta.nabl2.stratego.StrategoTerms.match(StrategoTerms.java:197)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:39)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:70)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.lambda$0(StrategoTermIndices.java:42)
at org.metaborg.meta.nabl2.stratego.StrategoTerms$1.caseAppl(StrategoTerms.java:224)
at org.metaborg.meta.nabl2.stratego.StrategoTerms.match(StrategoTerms.java:195)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:39)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:61)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.lambda$2(StrategoTermIndices.java:44)
at org.metaborg.meta.nabl2.stratego.StrategoTerms$1.caseList(StrategoTerms.java:232)
at org.metaborg.meta.nabl2.stratego.StrategoTerms.match(StrategoTerms.java:197)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:39)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:545)
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:70)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.lambda$0(StrategoTermIndices.java:42)
at org.metaborg.meta.nabl2.stratego.StrategoTerms$1.caseAppl(StrategoTerms.java:224)
at org.metaborg.meta.nabl2.stratego.StrategoTerms.match(StrategoTerms.java:195)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.index(StrategoTermIndices.java:39)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices$Indexer.access$0(StrategoTermIndices.java:38)
at org.metaborg.meta.nabl2.stratego.StrategoTermIndices.index(StrategoTermIndices.java:22)
at org.metaborg.meta.nabl2.spoofax.primitives.SG_index_ast.call(SG_index_ast.java:18)
at org.spoofax.interpreter.stratego.PrimT.eval(PrimT.java:63)
at org.spoofax.interpreter.stratego.Strategy.evaluate(Strategy.java:81)
at org.spoofax.interpreter.stratego.SDefT.evaluate(SDefT.java:213)
at org.strategoxt.lang.InteropStrategy.invokeDynamic(InteropStrategy.java:57)
at org.strategoxt.lang.DynamicStrategy.invoke(DynamicStrategy.java:22)
at org.strategoxt.stratego_lib.with_1_1.invoke(with_1_1.java:31)
at org.strategoxt.lang.Strategy.invokeDynamic(Strategy.java:44)
at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:192)
at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:183)
at org.strategoxt.lang.InteropSDefT$StrategyBody.evaluate(InteropSDefT.java:245)
at org.strategoxt.lang.InteropSDefT$StrategyBody.eval(InteropSDefT.java:238)
at org.spoofax.interpreter.stratego.Strategy.evaluate(Strategy.java:81)
at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:109)
at org.spoofax.interpreter.core.Interpreter.invoke(Interpreter.java:82)
at org.strategoxt.HybridInterpreter.invoke(HybridInterpreter.java:441)
at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:112)
at org.metaborg.spoofax.core.analysis.constraint.AbstractConstraintAnalyzer.doAction(AbstractConstraintAnalyzer.java:160)
at org.metaborg.spoofax.core.analysis.constraint.ConstraintSingleFileAnalyzer.analyzeAll(ConstraintSingleFileAnalyzer.java:133)
at org.metaborg.spoofax.core.analysis.constraint.ConstraintSingleFileAnalyzer.analyzeAll(ConstraintSingleFileAnalyzer.java:1)
at org.metaborg.spoofax.core.analysis.constraint.AbstractConstraintAnalyzer.analyzeAll(AbstractConstraintAnalyzer.java:142)
at org.metaborg.spoofax.core.analysis.constraint.ConstraintSingleFileAnalyzer.analyzeAll(ConstraintSingleFileAnalyzer.java:1)
at org.metaborg.spoofax.core.analysis.constraint.AbstractConstraintAnalyzer.analyze(AbstractConstraintAnalyzer.java:93)
at org.metaborg.spoofax.core.analysis.constraint.ConstraintSingleFileAnalyzer.analyze(ConstraintSingleFileAnalyzer.java:1)
at org.metaborg.spoofax.core.analysis.constraint.AbstractConstraintAnalyzer.analyze(AbstractConstraintAnalyzer.java:1)
at org.metaborg.core.analysis.AnalysisService.analyze(AnalysisService.java:30)
at org.metaborg.spoofax.core.analysis.SpoofaxAnalysisService.analyze(SpoofaxAnalysisService.java:20)
at org.metaborg.spoofax.core.analysis.ISpoofaxAnalysisService.analyze(ISpoofaxAnalysisService.java:32)
at nl.tudelft.lsp.server.spoofax.SpoofaxLanguageServer.analyze(SpoofaxLanguageServer.java:115)
at nl.tudelft.lsp.server.spoofax.SpoofaxLanguageServer.documentOpened(SpoofaxLanguageServer.java:75)
at nl.tudelft.lsp.server.spoofax.SpoofaxLanguageServerTest$AnalyzeTests.didOpenShouldPublish(SpoofaxLanguageServerTest.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:316)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:114)
at org.junit.jupiter.engine.descriptor.MethodTestDescriptor.lambda$invokeTestMethod$6(MethodTestDescriptor.java:171)
at org.junit.jupiter.engine.execution.ThrowableCollector.execute(ThrowableCollector.java:40)
at org.junit.jupiter.engine.descriptor.MethodTestDescriptor.invokeTestMethod(MethodTestDescriptor.java:168)
at org.junit.jupiter.engine.descriptor.MethodTestDescriptor.execute(MethodTestDescriptor.java:115)
at org.junit.jupiter.engine.descriptor.MethodTestDescriptor.execute(MethodTestDescriptor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$1(HierarchicalTestExecutor.java:81)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:76)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$1(HierarchicalTestExecutor.java:91)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:76)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$1(HierarchicalTestExecutor.java:91)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:76)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.lambda$execute$1(HierarchicalTestExecutor.java:91)
at org.junit.platform.engine.support.hierarchical.SingleTestExecutor.executeSafely(SingleTestExecutor.java:66)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:76)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:51)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:43)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:137)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:87)
at org.junit.platform.launcher.Launcher.execute(Launcher.java:93)
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:61)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

Submitted on 22 May 2017 at 17:42

On 28 May 2017 at 12:09 Hendrik van Antwerpen commented:

Should be fixed in latest master builds.


On 28 May 2017 at 12:09 Hendrik van Antwerpen closed this issue.

Log in to post comments