SPT: get_target_language fails in parse to tests
Only an issue with
parse to
tests,parse succeeds
does not have this issue.Submitted by Daco Harkes on 12 January 2016 at 01:5801: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
Issue Log
On 12 January 2016 at 09:55 Gabriël Konat commented:
Is this the same issue as https://yellowgrass.org/issue/SpoofaxWithCore/54 ?
On 12 January 2016 at 09:55 Gabriël Konat tagged spt
On 12 January 2016 at 09:59 Daco Harkes commented:
Well the error is reported at the top of the file.
But there should not be an error at all, since the fragment of code works fine with
parse succeeds
or outside SPT.
On 12 January 2016 at 10:14 Gabriël Konat commented:
Ah, the code formatting of exceptions on YG is horrible, I spot the NPE now:
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]
This is probably missing origin information that crashes SPT.
On 12 January 2016 at 10:22 Gabriël Konat closed this issue.
Log in to post comments