In the current Sunshine version the invocation of the observer (aka analysis) fails for languages that are built to ctree. This does not occur for languages that are built to jar. The stack trace is:

org.metaborg.sunshine.CompilerException: Analysis failed
  at org.metaborg.sunshine.services.analyzer.AnalysisService.analyze(AnalysisService.java:117)
  at org.metaborg.sunshine.services.analyzer.AnalysisService.analyze(AnalysisService.java:70)
  at org.metaborg.sunshine.services.analyzer.AnalyzerLink.sinkWork(AnalyzerLink.java:29)
  at org.metaborg.sunshine.pipeline.connectors.ALinkManyToMany.sink(ALinkManyToMany.java:34)
  at org.metaborg.sunshine.pipeline.connectors.ALinkManyToMany.sink(ALinkManyToMany.java:38)
  at org.metaborg.sunshine.services.filesource.FileSource.poke(FileSource.java:52)
  at org.metaborg.sunshine.drivers.SunshineMainDriver.run(SunshineMainDriver.java:175)
  at org.metaborg.sunshine.drivers.Main.main(Main.java:42)
Caused by: org.spoofax.interpreter.core.InterpreterException: Exception during evaluation
  at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:120)
  at org.spoofax.interpreter.core.Interpreter.invoke(Interpreter.java:82)
  at org.strategoxt.HybridInterpreter.invoke(HybridInterpreter.java:424)
  at org.metaborg.sunshine.services.analyzer.AnalysisService.analyze(AnalysisService.java:96)
  ... 7 more
Caused by: org.strategoxt.lang.StrategoException: Exception in interpreter: import-term failed for include/Entity3.tbl
  at org.strategoxt.lang.InteropStrategy.invokeDynamic(InteropStrategy.java:64)
  at org.strategoxt.lang.DynamicStrategy.invoke(DynamicStrategy.java:22)
  at org.strategoxt.lang.SRTS_all.map(SRTS_all.java:60)
  at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:21)
  at org.strategoxt.lang.compat.override.performance_tweaks.map_1_0_override.invoke(map_1_0_override.java:29)
  at org.strategoxt.lang.Strategy.invokeDynamic(Strategy.java:40)
  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:76)
  at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:109)
  ... 10 more
Caused by: org.spoofax.interpreter.core.InterpreterException: import-term failed for include/Entity3.tbl
  at org.spoofax.interpreter.stratego.ImportTerm.eval(ImportTerm.java:42)
  at org.spoofax.interpreter.stratego.Strategy.evaluate(Strategy.java:76)
  at org.spoofax.interpreter.stratego.SDefT.evaluate(SDefT.java:213)
  at org.strategoxt.lang.InteropStrategy.invokeDynamic(InteropStrategy.java:57)
  ... 21 more
Caused by: java.io.FileNotFoundException: /Users/vladvergu/version_control/sunshine/spoofax-sunshine/org.spoofax.sunshine/include/Entity3.tbl (No such file or directory)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.<init>(FileInputStream.java:146)
  at java.io.FileInputStream.<init>(FileInputStream.java:101)
  at org.spoofax.interpreter.library.IOAgent.openInputStream(IOAgent.java:303)
  at org.spoofax.interpreter.stratego.ImportTerm.eval(ImportTerm.java:39)
  ... 24 more
Submitted by Vlad Vergu on 20 November 2013 at 22:05

On 20 November 2013 at 22:05 Vlad Vergu tagged @vvergu


On 2 December 2013 at 21:27 Vlad Vergu closed this issue.

Log in to post comments