Building a language with an editor of that language open breaks the language
When building a language with an editor open, the project breaks.
During building, an error is reported that the ctree cannot be found/opened:org.strategoxt.imp.runtime.dynamicloading.BadDescriptorException: Could not load compiler service provider(s): include\entity.ctree at org.strategoxt.imp.runtime.services.StrategoObserver.reportLoadException(StrategoObserver.java:444) at org.strategoxt.imp.runtime.services.StrategoObserver.loadCTree(StrategoObserver.java:405) at org.strategoxt.imp.runtime.services.StrategoObserver.initialize(StrategoObserver.java:327) at org.strategoxt.imp.runtime.services.StrategoObserver.getRuntime(StrategoObserver.java:860) at org.strategoxt.imp.runtime.services.StrategoObserverUpdateJob.analyze(StrategoObserverUpdateJob.java:29) at org.strategoxt.imp.runtime.services.StrategoAnalysisQueue$UpdateJob.run(StrategoAnalysisQueue.java:83) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.io.FileNotFoundException: C:\Spoofax\Workbenches\Spoofax-inner\Entity\include\entity.ctree (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at org.strategoxt.imp.runtime.dynamicloading.Descriptor.openAttachment(Descriptor.java:390) at org.strategoxt.imp.runtime.dynamicloading.Descriptor.openAttachment(Descriptor.java:389) at org.strategoxt.imp.runtime.dynamicloading.Descriptor.openAttachment(Descriptor.java:374) at org.strategoxt.imp.runtime.services.StrategoObserver.loadCTree(StrategoObserver.java:397) ... 5 more
and as an effect of that, semantic analysis breaks:
Internal error: strategy does not exist or is defined in a module that is not imported: Definition 'editor-analyze' not found rewriting failed
This is probably caused by the language/editors being reloaded before the ctree file is created (or visible in Eclipse)?
Since the editor is only reloaded after a build, the project stays broken until a build is executed without an editor being open.
Submitted by Gabriël Konat on 10 December 2012 at 12:58
Issue Log
On 10 December 2012 at 13:02 Vlad Vergu tagged !vvergu
On 10 December 2012 at 13:18 Gabriël Konat tagged @vvergu
On 10 December 2012 at 13:18 Gabriël Konat removed tag !vvergu
On 10 December 2012 at 13:27 Vlad Vergu commented:
Probably caused by incorrect build order. Thanks for reporting. r25773 hopefully fixes this.
On 10 December 2012 at 17:47 Vlad Vergu commented:
Ok. This is definitely not fixed. Looks like it’s caused by Spoofax/591.
On 10 December 2012 at 21:36 Vlad Vergu commented:
This is fixed as part of implementation for Spoofax/591, in revision r25773.
On 10 December 2012 at 21:36 Vlad Vergu closed this issue.
Log in to post comments