Stratego imports not working in mix-syntax in editor
Stratego imports do not work with Stratego dialects (e.g. Stratego-Java-15).
Submitted by Daco Harkes on 22 August 2016 at 14:03Eclipse: org.eclipse.platform.ide 4.6.0.I20160606-1100 Spoofax: org.metaborg.spoofax.eclipse 2.0.0 System: Mac OS X x86_64 10.11.6
Issue Log
Note that stratego imports from a dialect to a same dialect also do not work.
Importing a dialect file in a non-dialect file is fine.
There is no workaround, as removing the compile dependency
- org.metaborg:org.metaborg.meta.lang.stratego:${metaborgVersion}
breaks all (both mix syntax and non mix syntax) stratego imports.
Even though the imports are marked as error, cmd+clicking them still works. (But all the strategies from those modules are not imported to the current module.)
Apparently this is already fixed in nightly.
Eclipse: org.eclipse.platform.ide 4.6.0.I20160606-1100 Spoofax: org.metaborg.spoofax.eclipse 2.1.0.20160825-095503-master System: Mac OS X x86_64 10.11.6
Is it possible to hotfix this? (As nightly currently has a not completely working SDF3.)
Or is it maybe possible to use
org.metaborg:org.metaborg.meta.lang.stratego:2.1.0-SNAPSHOT
in Spoofax 2.0.0?In Eclipse I get this error.
14:40 | ERROR | o.m.s.e.b.ProjectBuilder - Cannot build project eclipse:///icedust, some dependencies are missing. The following dependencies are missing: Compile-time: org.metaborg:org.metaborg.meta.lang.stratego:2.1.0-SNAPSHOT
But the commandline build works. (Probably because stratego 2.1.0-SNAPSHOT was fetched already today by maven.)
How would I add the correct dependencies/repositories to my project?
Fixed in latest version.
Log in to post comments