Eclipse version: org.eclipse.epp.package.standard.feature.feature.group 4.4.2.20150219-0708
Spoofax version: org.metaborg.spoofax.eclipse 1.5.0.20150327-150820

There seems to be something wrong with the way Eclipse resource URIs are constructed. This is on my Windows machine:

org.metaborg.spoofax.core.SpoofaxException: Invoking Stratego function failed
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeUtils.invoke(StrategoRuntimeUtils.java:21)
	at org.metaborg.spoofax.core.analysis.stratego.StrategoAnalysisService.analyzeSingleAST(StrategoAnalysisService.java:188)
	at org.metaborg.spoofax.core.analysis.stratego.StrategoAnalysisService.analyze(StrategoAnalysisService.java:121)
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:254)
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:113)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
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:442)
	at org.metaborg.spoofax.core.stratego.StrategoRuntimeUtils.invoke(StrategoRuntimeUtils.java:15)
	... 5 more
Caused by: org.strategoxt.lang.StrategoException: Exception in execution of primitive 'SSL_access'
	at org.strategoxt.lang.Context.invokePrimitive(Context.java:240)
	at org.strategoxt.lang.Context.invokePrimitive(Context.java:216)
	at org.strategoxt.stratego_lib.access_0_0.invoke(access_0_0.java:28)
	at org.strategoxt.stratego_lib.file_exists_0_0.invoke(file_exists_0_0.java:25)
	at trans.analyze_ast_0_0.invoke(analyze_ast_0_0.java:164)
	at trans.editor_analyze_0_0.invoke(editor_analyze_0_0.java:76)
	at org.strategoxt.lang.Strategy.invokeDynamic(Strategy.java:30)
	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.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:109)
	... 8 more
Caused by: java.lang.RuntimeException: Cannot parse path into URI
	at org.metaborg.spoofax.core.stratego.ResourceAgent.resolve(ResourceAgent.java:381)
	at org.metaborg.spoofax.core.stratego.ResourceAgent.openFile(ResourceAgent.java:302)
	at org.spoofax.interpreter.library.ssl.SSL_access.call(SSL_access.java:47)
	at org.strategoxt.lang.Context.invokePrimitive(Context.java:227)
	... 18 more
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Users\oskar\workspace\my.project/.disable-global-analysis
	at java.net.URI$Parser.fail(Unknown Source)
	at java.net.URI$Parser.checkChars(Unknown Source)
	at java.net.URI$Parser.parse(Unknown Source)
	at java.net.URI.<init>(Unknown Source)
	at org.metaborg.spoofax.core.stratego.ResourceAgent.resolve(ResourceAgent.java:379)
	... 21 more
Submitted by Oskar van Rest on 30 March 2015 at 09:33

On 30 March 2015 at 13:04 Gabriël Konat tagged major

On 31 March 2015 at 11:56 Gabriël Konat commented:

Applied a fix for this and tested it in my Windows VM (on the QL project), should work now. Can you try with a new build from http://download.spoofax.org/update/newplugin-nightly/?


On 31 March 2015 at 13:55 Oskar van Rest commented:

This fixed the issue. Thanks!!


On 31 March 2015 at 13:55 Oskar van Rest closed this issue.

On 1 April 2015 at 16:59 Gabriël Konat tagged alpha2

Log in to post comments