After closing and reopening Eclipse, changing an SDF3 file and building the project (without a clean) lets the build fail.

Workaround: project clean

Subsequent changes to SDF3 files are not a problem.

14:00 | INFO  | o.m.s.e.m.b.CompileBuilder     - Building language project eclipse:///icedust2
14:00 | INFO  | Build log                      - > Pack SDF modules
14:00 | INFO  | Build log                      - Execute pack-sdf -i /Users/daco/IceDust-spoofax-nightly2/icedust2/src-gen/syntax/icedust2.sdf -o /Users/daco/IceDust-spoofax-nightly2/icedust2/src-gen/syntax/icedust2.def -I /Users/daco/IceDust-spoofax-nightly2/icedust2/lib -I /Users/daco/IceDust-spoofax-nightly2/icedust2/syntax -I /Users/daco/IceDust-spoofax-nightly2/icedust2/src-gen -I /Users/daco/IceDust-spoofax-nightly2/icedust2 -I /Users/daco/IceDust-spoofax-nightly2/icedust2/src-gen/syntax -I /Applications/Spoofax20170323.app/Contents/Eclipse/plugins/org.metaborg.meta.lib.analysis.eclipse_2.2.0.20170323-113226-master/target/unpacked/latest/src-gen/syntax -I /Applications/Spoofax20170323.app/Contents/Eclipse/plugins/org.metaborg.meta.nabl2.shared.eclipse_2.2.0.20170323-113226-master/target/unpacked/latest/src-gen/syntax -I /Applications/Spoofax20170323.app/Contents/Eclipse/plugins/org.metaborg.meta.nabl2.runtime.eclipse_2.2.0.20170323-113226-master/target/unpacked/latest/src-gen/syntax
14:00 | INFO  | Build log                      - > Make grammar permissive for error-recovery parsing.
14:00 | INFO  | Build log                      - Execute make-permissive -i /Users/daco/IceDust-spoofax-nightly2/icedust2/src-gen/syntax/icedust2.def -o /Users/daco/IceDust-spoofax-nightly2/icedust2/src-gen/syntax/icedust2-permissive.def --optimize on --semantic-completions off --syntactic-completions off
14:00 | INFO  | Build log                      - > Compile grammar to parse table
14:00 | ERROR | Build log                      - Builder failed unexpectedly
java.lang.NullPointerException: null
	at org.metaborg.spoofax.meta.core.pluto.build.Sdf2Table.build(Sdf2Table.java:76) ~[org.metaborg.spoofax.meta.core_2.2.0.20170323-113226-master.jar:na]
	at org.metaborg.spoofax.meta.core.pluto.build.Sdf2Table.build(Sdf2Table.java:1) ~[org.metaborg.spoofax.meta.core_2.2.0.20170323-113226-master.jar:na]
	at build.pluto.builder.Builder.triggerBuild(Builder.java:134) ~[pluto-1.10.0.jar:na]
	at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:98) [pluto-1.10.0.jar:na]
	at build.pluto.builder.BuildManager.require(BuildManager.java:348) [pluto-1.10.0.jar:na]
	at build.pluto.dependency.BuildRequirement.tryMakeConsistent(BuildRequirement.java:91) [pluto-1.10.0.jar:na]
	at build.pluto.builder.BuildManager.require(BuildManager.java:339) [pluto-1.10.0.jar:na]
	at build.pluto.builder.BuildManager.requireInitially(BuildManager.java:262) [pluto-1.10.0.jar:na]
	at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.plutoBuild(LanguageSpecBuilder.java:304) [org.metaborg.spoofax.meta.core_2.2.0.20170323-113226-master.jar:na]
	at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.compile(LanguageSpecBuilder.java:136) [org.metaborg.spoofax.meta.core_2.2.0.20170323-113226-master.jar:na]
	at org.metaborg.spoofax.eclipse.meta.build.CompileBuilder$1.run(CompileBuilder.java:49) [org.metaborg.spoofax.eclipse.meta_2.2.0.20170323-113226-master.jar:na]
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.metaborg.spoofax.eclipse.meta.build.CompileBuilder.build(CompileBuilder.java:69) [org.metaborg.spoofax.eclipse.meta_2.2.0.20170323-113226-master.jar:na]
	at org.metaborg.spoofax.eclipse.meta.build.Builder.build(Builder.java:53) [org.metaborg.spoofax.eclipse.meta_2.2.0.20170323-113226-master.jar:na]
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [org.eclipse.equinox.common_3.8.0.v20160509-1230.jar:na]
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [org.eclipse.equinox.common_3.8.0.v20160509-1230.jar:na]
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:487) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:406) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:285) [org.eclipse.ui.ide_3.12.2.v20161115-1450.jar:na]
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39) [org.eclipse.core.resources_3.11.1.v20161107-2032.jar:na]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) [org.eclipse.core.jobs_3.8.0.v20160509-0411.jar:na]
14:00 | INFO  | Build log                      - Failing builder was required by "Generate sources".
14:00 | ERROR | o.m.s.e.m.b.CompileBuilder     - BUILD FAILED
Eclipse: org.eclipse.platform.ide 4.6.2.M20161124-1400
Spoofax: org.metaborg.spoofax.eclipse 2.2.0.20170323-113226-master
System: Mac OS X x86_64 10.12.3
Submitted by Daco Harkes on 31 March 2017 at 14:03

On 31 March 2017 at 14:04 Gabriël Konat commented:

Duplicate of https://yellowgrass.org/issue/Spoofax/182


On 31 March 2017 at 14:04 Gabriël Konat closed this issue.

Log in to post comments