Local Spoofax build fails in TemplateLang
When trying to build the latest snapshot (updated one hour ago), I get the following build error:
Submitted by Oskar van Rest on 2 July 2016 at 01:11[INFO] --- spoofax-maven-plugin:2.0.0-SNAPSHOT:generate-sources (default-generate-sources) @ org.metaborg.meta.lang.template --- [INFO] Generating Spoofax sources [INFO] Building file:///home/oskar/repos/spoofax-releng/sdf/org.metaborg.meta.lang.template [INFO] Building 1 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.template:2.0.0-baseline-20160405-142357 [ERROR] ERROR in file:///home/oskar/repos/spoofax-releng/sdf/org.metaborg.meta.lang.template/syntax/layout/Comments.sdf3:3 [ERROR] layout/Whitespace [ERROR] ^^^^^^^^^^^^^^^^^ [ERROR] Unresolved reference to module 'layout/Whitespace' [ERROR] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] runtime-libraries .................................. SUCCESS [ 3.642 s] [INFO] TemplateLang ....................................... FAILURE [ 2.684 s] [INFO] EditorService ...................................... SKIPPED [INFO] ATerm .............................................. SKIPPED [INFO] NaBL2Shared ........................................ SKIPPED [INFO] NaBL2Lang .......................................... SKIPPED [INFO] NaBL2Runtime ....................................... SKIPPED [INFO] NameBindingLanguage ................................ SKIPPED [INFO] Analysis ........................................... SKIPPED [INFO] SDF ................................................ SKIPPED [INFO] Stratego-Sugar ..................................... SKIPPED [INFO] TypeSystemLanguage ................................. SKIPPED [INFO] build.language ..................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.556 s [INFO] Finished at: 2016-07-01T15:50:29-07:00 [INFO] Final Memory: 108M/778M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.metaborg:spoofax-maven-plugin:2.0.0-SNAPSHOT:generate-sources (default-generate-sources) on project org.metaborg.meta.lang.template: Generating sources failed: Analysis produced errors -> [Help 1]
Issue Log
Weird, works on the buildfarm and on my desktop here. Any local changes that may cause that? Try cleaning and rebuilding?
When I applied your PRs locally, I get the same error. I suspect this is a regression caused by the bump of VFS from 2.0 to 2.1.
Wow, that was interesting. This was caused by
FileObject
now implementingIterable<FileObject>
in VFS 2.1, which caused a different method to be used in my Iterables2 utility class. It used a method with a more specific type,Iterable<FileObject>[]
instead ofFileObject[]
, which did something wrong in this case. Never thought that just implementing an interface could have such disastrous consequences.I have fixed the issue and gave the methods a different name instead of relying on type overloading, to prevent future issues.
That was quite unexpected indeed that a library version change gives an unresolved reference error in SDF :O
Thanks a lot for taking a look into this!
Log in to post comments