Spaces in project path breaks Spoofax
Submitted by Eelco Visser on 5 January 2016 at 14:33org.metaborg.core.MetaborgException: Invoking Stratego strategy failed unexpectedly at org.metaborg.spoofax.core.stratego.StrategoCommon.handleException(StrategoCommon.java:131) ~[org.metaborg.spoofax.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:94) ~[org.metaborg.spoofax.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:142) [org.metaborg.spoofax.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.core.analysis.legacy.StrategoAnalyzer.analyze(StrategoAnalyzer.java:87) [org.metaborg.spoofax.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.core.analysis.AnalysisService.analyze(AnalysisService.java:23) [org.metaborg.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.core.build.Builder.analyze(Builder.java:336) [org.metaborg.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.core.build.Builder.updateLanguageResources(Builder.java:233) [org.metaborg.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.core.build.Builder.build(Builder.java:165) [org.metaborg.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.eclipse.build.BuildRunnable.run(BuildRunnable.java:60) [org.metaborg.spoofax.eclipse_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.metaborg.spoofax.eclipse.processing.RunnableTask.schedule(RunnableTask.java:41) [org.metaborg.spoofax.eclipse_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.eclipse.build.SpoofaxProjectBuilder.build(SpoofaxProjectBuilder.java:100) [org.metaborg.spoofax.eclipse_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [org.eclipse.equinox.common_3.7.0.v20150402-1709.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [org.eclipse.equinox.common_3.7.0.v20150402-1709.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:486) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:405) [org.eclipse.core.resources_3.10.1.v20150725-1910.jar:na] at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:287) [org.eclipse.ui.ide_3.11.0.v20150825-2158.jar:na] at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39) [org.eclipse.core.resources_3.10.1.v20150725-1910.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.20160105-090828-new-spoofax-plugin.jar:na] at org.spoofax.interpreter.core.Interpreter.invoke(Interpreter.java:82) ~[org.spoofax.interpreter.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.strategoxt.HybridInterpreter.invoke(HybridInterpreter.java:442) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.metaborg.spoofax.core.stratego.StrategoCommon.invoke(StrategoCommon.java:88) ~[org.metaborg.spoofax.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] ... 24 common frames omitted Caused by: org.strategoxt.lang.StrategoException: Exception in execution of primitive 'SSL_readdir' at org.strategoxt.lang.Context.invokePrimitive(Context.java:240) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.strategoxt.lang.Context.invokePrimitive(Context.java:216) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.strategoxt.stratego_lib.readdir_0_0.invoke(readdir_0_0.java:22) ~[strategoxt-min-jar-1.5.0-SNAPSHOT.jar:na] at trans.record_all_esvs_0_0.invoke(record_all_esvs_0_0.java:34) ~[na:na] at trans.editor_analyze_0_0.invoke(editor_analyze_0_0.java:48) ~[na:na] at org.strategoxt.lang.Strategy.invokeDynamic(Strategy.java:30) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:192) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.strategoxt.lang.InteropSDefT.evaluate(InteropSDefT.java:183) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.strategoxt.lang.InteropSDefT$StrategyBody.evaluate(InteropSDefT.java:245) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] at org.spoofax.interpreter.core.Interpreter.evaluate(Interpreter.java:109) ~[org.spoofax.interpreter.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] ... 27 common frames omitted Caused by: java.lang.RuntimeException: Could not convert FileObject to File at org.metaborg.util.file.FileUtils.toFile(FileUtils.java:21) ~[org.metaborg.util_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.core.resource.ResourceService.localPath(ResourceService.java:116) ~[org.metaborg.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.eclipse.resource.EclipseResourceService.localPath(EclipseResourceService.java:113) ~[org.metaborg.spoofax.eclipse_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.metaborg.spoofax.core.stratego.ResourceAgent.openFile(ResourceAgent.java:327) ~[org.metaborg.spoofax.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.spoofax.interpreter.library.ssl.SSL_readdir.call(SSL_readdir.java:37) ~[org.spoofax.interpreter.core_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] at org.strategoxt.lang.Context.invokePrimitive(Context.java:227) ~[org.strategoxt.strj_1.5.0.20160105-090828-new-spoofax-plugin/:na] ... 36 common frames omitted Caused by: java.net.URISyntaxException: Illegal character in path at index 51: file:///Users/eelcovisser/Dropbox/01-Teach/Software Security/software security 2015/secure-by-construction/BufferC at java.net.URI$Parser.fail(URI.java:2829) ~[na:1.7.0_72] at java.net.URI$Parser.checkChars(URI.java:3002) ~[na:1.7.0_72] at java.net.URI$Parser.parseHierarchical(URI.java:3086) ~[na:1.7.0_72] at java.net.URI$Parser.parse(URI.java:3034) ~[na:1.7.0_72] at java.net.URI.<init>(URI.java:595) ~[na:1.7.0_72] at org.metaborg.util.file.FileUtils.toFile(FileUtils.java:17) ~[org.metaborg.util_1.5.0.20160105-090828-new-spoofax-plugin.jar:na] ... 41 common frames omitted
Issue Log
On 6 January 2016 at 16:48 Gabriël Konat commented:
Fixed
On 6 January 2016 at 16:48 Gabriël Konat closed this issue.
Log in to post comments