When trying to build the latest snapshot (updated one hour ago), I get the following build error:

[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]
Submitted by Oskar van Rest on 2 July 2016 at 01:11

On 2 July 2016 at 15:36 Gabriël Konat commented:

Weird, works on the buildfarm and on my desktop here. Any local changes that may cause that? Try cleaning and rebuilding?


On 4 July 2016 at 16:28 Gabriël Konat commented:

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.


On 4 July 2016 at 17:42 Gabriël Konat commented:

Wow, that was interesting. This was caused by FileObject now implementing Iterable<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 of FileObject[], 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.


On 4 July 2016 at 17:42 Gabriël Konat closed this issue.

On 6 July 2016 at 20:14 Oskar van Rest commented:

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