I have a parse table in two projects (icedust and icedust2), and I’ve closed the eclipse project icedust.
On opening a file that requires a parse table that is both in icedust and icedust2 it tries to load the file from the closed project.

Trace:

13:16 | ERROR | o.m.s.e.e.EditorUpdateJob      - Failed to update editor for eclipse:///icedust2/trans/generating/webdsl/data.str
org.metaborg.core.syntax.ParseException: java.io.IOException: Could not load parse table from eclipse:///icedust/lib/StrategoWebDSL.tbl, file does not exist
	at org.metaborg.spoofax.core.syntax.JSGLRParseService.parse(JSGLRParseService.java:90) ~[org.metaborg.spoofax.core_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.spoofax.core.syntax.JSGLRParseService.parse(JSGLRParseService.java:1) ~[org.metaborg.spoofax.core_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.core.syntax.SyntaxService.parse(SyntaxService.java:36) ~[org.metaborg.core_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.parse(EditorUpdateJob.java:299) ~[org.metaborg.spoofax.eclipse_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.update(EditorUpdateJob.java:215) ~[org.metaborg.spoofax.eclipse_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.spoofax.eclipse.editor.EditorUpdateJob.run(EditorUpdateJob.java:135) ~[org.metaborg.spoofax.eclipse_2.2.0.20170225-103820-master.jar:na]
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) [org.eclipse.core.jobs_3.8.0.v20160509-0411.jar:na]
Caused by: java.io.IOException: Could not load parse table from eclipse:///icedust/lib/StrategoWebDSL.tbl, file does not exist
	at org.metaborg.spoofax.core.syntax.FileParseTableProvider.parseTable(FileParseTableProvider.java:32) ~[org.metaborg.spoofax.core_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.spoofax.core.syntax.JSGLRI.<init>(JSGLRI.java:49) ~[org.metaborg.spoofax.core_2.2.0.20170225-103820-master.jar:na]
	at org.metaborg.spoofax.core.syntax.JSGLRParseService.parse(JSGLRParseService.java:81) ~[org.metaborg.spoofax.core_2.2.0.20170225-103820-master.jar:na]
	... 6 common frames omitted

Spoofax:

Eclipse: org.eclipse.platform.ide 4.6.2.M20161124-1400
Spoofax: org.metaborg.spoofax.eclipse 2.2.0.20170225-103820-master
System: Mac OS X x86_64 10.12.2
Submitted by Daco Harkes on 2 March 2017 at 13:17

On 3 March 2017 at 11:15 Gabriël Konat commented:

That is because the dialect is loaded from the first source. Unfortunately this cannot be fixed the way we handle Stratego dialects at the moment.


On 3 March 2017 at 11:15 Gabriël Konat closed this issue.

Log in to post comments