Only an issue with parse to tests, parse succeeds does not have this issue.

01:57 | ERROR | o.m.s.c.a.l.StrategoAnalyzer   - Analysis failed
Stratego stack trace:
	editor_analyze_0_0
	editor_analyze_0_0
	get_target_language_0_0

org.metaborg.core.MetaborgException: Invoking Stratego strategy failed unexpectedly
	at org.metaborg.spoofax.core.stratego.StrategoCommon.handleException(StrategoCommon.java:121) ~[org.metaborg.spoofax.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:84) ~[org.metaborg.spoofax.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:142) [org.metaborg.spoofax.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:87) [org.metaborg.spoofax.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.core.analysis.AnalysisService.analyze(AnalysisService.java:23) [org.metaborg.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.analyze(EditorUpdateJob.java:333) [org.metaborg.spoofax.eclipse_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:259) [org.metaborg.spoofax.eclipse_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:119) [org.metaborg.spoofax.eclipse_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) [org.eclipse.core.jobs_3.7.0.v20150330-2103.jar:na]
Caused by: org.spoofax.interpreter.core.InterpreterException: Exception during evaluation
	at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:120) ~[org.spoofax.interpreter.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.interpreter.core.Interpreter.invoke(Interpreter.java:82) ~[org.spoofax.interpreter.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.strategoxt.HybridInterpreter.invoke(HybridInterpreter.java:442) ~[org.strategoxt.strj_1.5.0.20160110-174901-new-spoofax-plugin/:na]
	at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:78) ~[org.metaborg.spoofax.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	... 7 common frames omitted
Caused by: java.lang.NullPointerException: null
	at org.spoofax.jsglr.client.imploder.ImploderAttachment.getLeftToken(ImploderAttachment.java:108) ~[org.spoofax.jsglr_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.jsglr.client.imploder.ImploderAttachment.getTokenizer(ImploderAttachment.java:151) ~[org.spoofax.jsglr_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.meta.lang.spt.strategies.FragmentParser.parse(FragmentParser.java:187) ~[na:na]
	at org.metaborg.meta.lang.spt.strategies.spt_parse_fragments_0_3$1.preTransform(spt_parse_fragments_0_3.java:144) ~[na:na]
	at org.spoofax.terms.TermTransformer.transform(TermTransformer.java:33) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleAll(TermTransformer.java:55) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.transform(TermTransformer.java:34) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleMapIgnoreAnnos(TermTransformer.java:90) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleAll(TermTransformer.java:48) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.transform(TermTransformer.java:34) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleAll(TermTransformer.java:55) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.transform(TermTransformer.java:34) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleMapIgnoreAnnos(TermTransformer.java:90) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleAll(TermTransformer.java:48) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.transform(TermTransformer.java:34) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.simpleAll(TermTransformer.java:55) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.spoofax.terms.TermTransformer.transform(TermTransformer.java:34) ~[org.spoofax.terms_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	at org.metaborg.meta.lang.spt.strategies.spt_parse_fragments_0_3.invoke(spt_parse_fragments_0_3.java:201) ~[na:na]
	at trans.editor_analyze_0_0.invoke(editor_analyze_0_0.java:87) ~[na:na]
	at org.strategoxt.lang.Strategy.invokeDynamic(Strategy.java:30) ~[org.strategoxt.strj_1.5.0.20160110-174901-new-spoofax-plugin/:na]
	at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:192) ~[org.strategoxt.strj_1.5.0.20160110-174901-new-spoofax-plugin/:na]
	at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:183) ~[org.strategoxt.strj_1.5.0.20160110-174901-new-spoofax-plugin/:na]
	at org.strategoxt.lang.InteropSDefT$StrategyBody.evaluate(InteropSDefT.java:245) ~[org.strategoxt.strj_1.5.0.20160110-174901-new-spoofax-plugin/:na]
	at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:109) ~[org.spoofax.interpreter.core_1.5.0.20160110-174901-new-spoofax-plugin.jar:na]
	... 10 common frames omitted
Submitted by Daco Harkes on 12 January 2016 at 10:22


On 14 January 2016 at 15:49 Gabriël Konat commented:

The problem is that concrete syntax fragments on the right of parse to tests do not include the text from setup blocks, so they always fail to parse. I don’t know the SPT codebase well enough to fix this. A workaround is to not use setup blocks with these kind of tests.


On 10 June 2016 at 15:58 Gabriël Konat removed tag @gohla

On 10 June 2016 at 15:58 Gabriël Konat tagged error

On 10 June 2016 at 15:58 Gabriël Konat closed this issue.

Log in to post comments