Spaces in path crashes analysis of Stratego files
Analysis of Stratego files fails, when runtime libraries are imported. Cause seems to be a URI starting with
file:///
instead ofeclipse:///
. I get the following error and stack trace when I create a new project calledfoo
and opentrans/outline.str
.11:47 | ERROR | o.m.s.e.e.EditorUpdateJob - Failed to update editor for eclipse:///foo/trans/outline.str org.metaborg.core.analysis.AnalysisException: Analysis for eclipse:///foo/trans/outline.str failed at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:203) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:99) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:1) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.core.analysis.AnalysisService.analyze(AnalysisService.java:27) ~[org.metaborg.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.analysis.SpoofaxAnalysisService.analyze(SpoofaxAnalysisService.java:17) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.analysis.SpoofaxAnalysisService.analyze(SpoofaxAnalysisService.java:1) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.analyze(EditorUpdateJob.java:349) ~[org.metaborg.spoofax.eclipse_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:277) ~[org.metaborg.spoofax.eclipse_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:130) ~[org.metaborg.spoofax.eclipse_2.0.0.20160701-074619-master.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.metaborg.core.MetaborgException: Invoking Stratego strategy failed unexpectedly: Exception in execution of primitive 'SSL_access' Stratego trace: editor_analyze_0_0 editor_analyze_0_0 analyze_ast_0_0 declare_globals_top_0_0 alltd_1_0 origin_track_forced_1_0 declare_globals_0_0 open_import_3_0 resolve_import_decl_0_0 resolve_import_path_0_0 fetch_elem_1_0 file_exists_0_0 at org.metaborg.spoofax.core.stratego.StrategoCommon.handleException(StrategoCommon.java:139) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:84) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:179) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] ... 9 common frames omitted Caused by: org.strategoxt.lang.StrategoException: Exception in execution of primitive 'SSL_access' at org.strategoxt.lang.Context.invokePrimitive(Context.java:240) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.Context.invokePrimitive(Context.java:216) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.stratego_lib.access_0_0.invoke(access_0_0.java:28) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.stratego_lib.file_exists_0_0.invoke(file_exists_0_0.java:25) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.metaborg.meta.lang.stratego.trans.lifted88.invoke(lifted88.java:50) ~[na:na] at org.strategoxt.lang.compat.override.performance_tweaks.lifted6972.invoke(lifted6972.java:24) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.lang.SRTS_one.fetchMaintainAnnos(SRTS_one.java:57) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_one.fetchMaintainAnnos(SRTS_one.java:60) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_one.fetchMaintainAnnos(SRTS_one.java:60) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_one.fetchMaintainAnnos(SRTS_one.java:60) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_one.fetchMaintainAnnos(SRTS_one.java:60) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_one.invoke(SRTS_one.java:21) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.compat.override.performance_tweaks.fetch_elem_1_0_override.invoke(fetch_elem_1_0_override.java:27) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.metaborg.meta.lang.stratego.trans.resolve_import_path_0_0.invoke(resolve_import_path_0_0.java:42) ~[na:na] at org.metaborg.meta.lang.stratego.trans.resolve_import_decl_0_0.invoke(resolve_import_decl_0_0.java:61) ~[na:na] at org.metaborg.meta.lang.stratego.trans.open_import_3_0.invoke(open_import_3_0.java:60) ~[na:na] at org.metaborg.meta.lang.stratego.trans.declare_globals_0_0.invoke(declare_globals_0_0.java:350) ~[na:na] at org.strategoxt.lang.SRTS_all.map(SRTS_all.java:60) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:21) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.metaborg.meta.lang.stratego.trans.origin_track_forced_1_0.invoke(origin_track_forced_1_0.java:36) ~[na:na] at org.metaborg.meta.lang.stratego.trans.lifted77.invoke(lifted77.java:27) ~[na:na] at org.strategoxt.stratego_lib.p_1174.invoke(p_1174.java:27) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.lang.SRTS_all.mapMaintainAnnos(SRTS_all.java:124) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_all.map(SRTS_all.java:68) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:21) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.stratego_lib.p_1174.invoke(p_1174.java:33) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:28) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.stratego_lib.p_1174.invoke(p_1174.java:33) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.lang.SRTS_all.map(SRTS_all.java:60) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:21) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.stratego_lib.p_1174.invoke(p_1174.java:33) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.lang.SRTS_all.invoke(SRTS_all.java:28) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.stratego_lib.p_1174.invoke(p_1174.java:33) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.strategoxt.stratego_lib.alltd_1_0.invoke(alltd_1_0.java:25) ~[strategoxt-min-jar-2.0.0-SNAPSHOT.jar:na] at org.metaborg.meta.lang.stratego.trans.declare_globals_top_0_0.invoke(declare_globals_top_0_0.java:74) ~[na:na] at org.metaborg.meta.lang.stratego.trans.analyze_ast_0_0.invoke(analyze_ast_0_0.java:238) ~[na:na] at org.metaborg.meta.lang.stratego.trans.editor_analyze_0_0.invoke(editor_analyze_0_0.java:76) ~[na:na] at org.strategoxt.lang.Strategy.invokeDynamic(Strategy.java:30) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:192) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:183) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.strategoxt.lang.InteropSDefT$StrategyBody.evaluate(InteropSDefT.java:245) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:109) ~[org.spoofax.interpreter.core_2.0.0.20160701-074619-master.jar:na] at org.spoofax.interpreter.core.Interpreter.invoke(Interpreter.java:82) ~[org.spoofax.interpreter.core_2.0.0.20160701-074619-master.jar:na] at org.strategoxt.HybridInterpreter.invoke(HybridInterpreter.java:442) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:78) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] ... 10 common frames omitted Caused by: org.metaborg.core.MetaborgRuntimeException: org.apache.commons.vfs2.FileSystemException: Incorrect file system URI "file:///" in name "file:///Users/oracle/Applications/Spoofax 2.0 (oracle).app/Contents/Eclipse/plugins/org.metaborg.meta.lib.analysis.eclipse_2.0.0.20160701-074619-master/target/unpacked/latest/trans/runtime/editor/outline-library.str", was expecting "eclipse:///". at org.metaborg.core.resource.ResourceService.resolve(ResourceService.java:120) ~[org.metaborg.core_2.0.0.20160701-074619-master.jar:na] at org.metaborg.spoofax.core.stratego.ResourceAgent.exists(ResourceAgent.java:384) ~[org.metaborg.spoofax.core_2.0.0.20160701-074619-master.jar:na] at org.spoofax.interpreter.library.ssl.SSL_access.call(SSL_access.java:58) ~[org.spoofax.interpreter.core_2.0.0.20160701-074619-master.jar:na] at org.strategoxt.lang.Context.invokePrimitive(Context.java:227) ~[org.strategoxt.strj_2.0.0.20160701-074619-master/:na] ... 54 common frames omitted Caused by: org.apache.commons.vfs2.FileSystemException: Incorrect file system URI "file:///" in name "file:///Users/oracle/Applications/Spoofax 2.0 (oracle).app/Contents/Eclipse/plugins/org.metaborg.meta.lib.analysis.eclipse_2.0.0.20160701-074619-master/target/unpacked/latest/trans/runtime/editor/outline-library.str", was expecting "eclipse:///". at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:324) ~[commons-vfs2-2.0.jar:2.0] at org.apache.commons.vfs2.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:317) ~[commons-vfs2-2.0.jar:2.0] at org.apache.commons.vfs2.provider.AbstractFileObject.resolveFile(AbstractFileObject.java:806) ~[commons-vfs2-2.0.jar:2.0] at org.metaborg.core.resource.ResourceService.resolve(ResourceService.java:118) ~[org.metaborg.core_2.0.0.20160701-074619-master.jar:na] ... 57 common frames omitted
Submitted by Guido Wachsmuth on 1 July 2016 at 11:50Eclipse: org.eclipse.platform.ide 4.5.2.M20160212-1500 Spoofax: org.metaborg.spoofax.eclipse 2.0.0.20160701-074619-master System: Mac OS X x86_64 10.11.5
Issue Log
On 1 July 2016 at 12:00 Guido Wachsmuth commented:
Looks like this is triggered by a space in the application name for Eclipse. Changing it to
SpoofaxNightly
fixes the problem for me.
On 17 August 2016 at 14:42 Gabriël Konat tagged path
On 11 October 2016 at 09:46 Gabriël Konat commented:
Should be fixed in the latest development version.
On 11 October 2016 at 09:46 Gabriël Konat closed this issue.
Log in to post comments