"Creating outline failed" error in newly created project
After generating a fresh project with wizard, I get “Creating outline failed” error.
(In Eclipse sent to me by Eduardo; that is supposedly nightly build circa May 16, 2016.)
Failed to update editor for eclipse:///atb/examples/example0.atb
in org.metaborg.spoofax.eclipse.editor.EditorUpdateJob (Worker-1)
org.metaborg.core.MetaborgException: Creating outline failed
at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:80) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:1) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.outline(EditorUpdateJob.java:319) ~[org.metaborg.spoofax.eclipse_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:223) ~[org.metaborg.spoofax.eclipse_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:130) ~[org.metaborg.spoofax.eclipse_2.0.0.20160510-141344-new-completions.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: Failed to load JAR
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadJars(StrategoRuntimeService.java:171) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadFiles(StrategoRuntimeService.java:154) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.createPrototype(StrategoRuntimeService.java:133) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.runtime(StrategoRuntimeService.java:69) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:71) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
… 5 common frames omitted
Caused by: org.strategoxt.IncompatibleJarException: Incompatible Stratego jar: file:/Users/eelcovisser/Dropbox/06-Program/workspace-spoofax/atb/target/metaborg/stratego-javastrat.jar (Unresolved compilation problems:
The import org.strategoxt cannot be resolved
The import org.strategoxt cannot be resolved
JavaInteropRegisterer cannot be resolved to a type
Strategy cannot be resolved to a type
)
at org.strategoxt.HybridInterpreter.registerJar(HybridInterpreter.java:356) ~[org.strategoxt.strj_2.0.0.20160510-141344-new-completions/:na]
at org.strategoxt.HybridInterpreter.loadJars(HybridInterpreter.java:291) ~[org.strategoxt.strj_2.0.0.20160510-141344-new-completions/:na]
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadJars(StrategoRuntimeService.java:169) ~[org.metaborg.spoofax.core_2.0.0.20160510-141344-new-completions.jar:na]
… 9 common frames omitted
Caused by: java.lang.Error: Unresolved compilation problems:
The import org.strategoxt cannot be resolved
The import org.strategoxt cannot be resolved
JavaInteropRegisterer cannot be resolved to a type
Strategy cannot be resolved to a typeat atb.strategies.InteropRegisterer.<init>(InteropRegisterer.java:3) ~[na:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_20] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_20] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_20] at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[na:1.8.0_20] at java.lang.Class.newInstance(Class.java:433) ~[na:1.8.0_20] at org.strategoxt.HybridInterpreter.registerJar(HybridInterpreter.java:338) ~[org.strategoxt.strj_2.0.0.20160510-141344-new-completions/:na] ... 11 common frames omitted
org.metaborg.core.MetaborgException: Creating outline failed
at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:80)
at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:1)
at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.outline(EditorUpdateJob.java:319)
at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:223)
at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:130)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.metaborg.core.MetaborgException: Failed to load JAR
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadJars(StrategoRuntimeService.java:171)
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadFiles(StrategoRuntimeService.java:154)
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.createPrototype(StrategoRuntimeService.java:133)
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.runtime(StrategoRuntimeService.java:69)
at org.metaborg.spoofax.core.outline.OutlineService.outline(OutlineService.java:71)
… 5 more
Caused by: org.strategoxt.IncompatibleJarException: Incompatible Stratego jar: file:/Users/eelcovisser/Dropbox/06-Program/workspace-spoofax/atb/target/metaborg/stratego-javastrat.jar (Unresolved compilation problems:
The import org.strategoxt cannot be resolved
The import org.strategoxt cannot be resolved
JavaInteropRegisterer cannot be resolved to a type
Strategy cannot be resolved to a type
)
at org.strategoxt.HybridInterpreter.registerJar(HybridInterpreter.java:356)
at org.strategoxt.HybridInterpreter.loadJars(HybridInterpreter.java:291)
at org.metaborg.spoofax.core.stratego.StrategoRuntimeService.loadJars(StrategoRuntimeService.java:169)
… 9 more
Caused by: java.lang.Error: Unresolved compilation problems:
The import org.strategoxt cannot be resolved
The import org.strategoxt cannot be resolved
JavaInteropRegisterer cannot be resolved to a type
Strategy cannot be resolved to a typeSubmitted by Eelco Visser on 18 May 2016 at 08:13at atb.strategies.InteropRegisterer.<init>(InteropRegisterer.java:3) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at java.lang.Class.newInstance(Class.java:433) at org.strategoxt.HybridInterpreter.registerJar(HybridInterpreter.java:338) ... 11 more
Issue Log
But maybe the cause is somewhere else. I also have this error:
Project build error: Non-resolvable parent POM for org.example:atb:0.1.0-SNAPSHOT: Failure to find org.metaborg:parent.language:pom:2.0.0-SNAPSHOT in http://artifacts.metaborg.org/content/repositories/core-snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of metaborg-snapshot-repo has elapsed or updates are forced and ‘parent.relativePath’ points at wrong local POMNote that I did not edit the suggested inputs for the names of the maven configuration
Weird, all the repositories are listed in the POM file for a newly generated language, so it should find that artifact. Did you have internet when that error occurred? Also, for some reason you still use
http://artifacts.metaborg.org/content/repositories/core-snapshots/
as a Maven repository, do you still have that in your~/.m2/settings.xml
? If so, remove that and use the settings from http://spoofax.readthedocs.io/en/latest/source/dev/maven.html#local-settings-file.
This was probably caused by maven repository being down when building/generating the project.
Log in to post comments