Summary: Building a new project fails using spoofax 1.1 on linux.

Detail: Fresh install produces error below on creating a new project. Tried a clean - which reported success - but doesn’t build properly on subsequent edit/save of sdf file.

Performed exactly the same steps on OSX 10.7.5 and error doesn’t occur - all builds correctly.

Config is:

Occurred when I created a new spoofax project. Selected ‘generate .gitignore’, didn’t select ‘generate minimal project only’.

Console output:

Generating syntax/Rosetta.sdf

Generating syntax/Common.sdf

Generating include/Rosetta.str

Generating syntax/Rosetta.pp

Generating trans/rosetta.str

Generating trans/generate.str

Generating trans/check.str

Generating trans/refactor.str

Generating editor/java/rosetta/strategies/InteropRegisterer.java

Generating editor/java/rosetta/strategies/java_strategy_0_0.java

Generating editor/java/rosetta/strategies/Main.java

Generating trans/names.nd

Generating trans/names.str

including ./syntax/Rosetta.sdf

including syntax/Common.sdf

Reading descriptor files

[ sdf2imp | error ] Unable to import module

    Import("Rosetta.main")

[ sdf2imp | warning ] Error opening existing descriptor file; attempting to use defaults instead

      "(editor/Rosetta.main)"

Using main module Rosetta

Using start symbols Start

Using package name rosetta

Using file extensions rml

Analyzing grammar…

Invoking native tool /home/sfinnie/bin/spoofax/plugins/org.strategoxt.imp.nativebundle_0.1.1.201302132043/native/linux/sdf2table [“-i”, “/home/sfinnie/projects/spoofax/rosetta/include/Rosetta.def”, “-o”, “/tmp/StrategoXT6067620941602615833.tmp”, “-m”, “Rosetta”, “-n”]

Invoking native tool /home/sfinnie/bin/spoofax/plugins/org.strategoxt.imp.nativebundle_0.1.1.201302132043/native/linux/implodePT [“-i”, “/tmp/StrategoXT6067620941602615833.tmp”, “-o”, “/tmp/StrategoXT4446000453592140282.tmp”]

Generating include/Rosetta-Permissive.def

[ org.strategoxt.permissivegrammars.main-make-permissive | info ] Number of productions to analyze: 16

[ org.strategoxt.permissivegrammars.main-make-permissive | info ] Number of productions generated: 17
Generating include/Rosetta.tbl
(“include/Rosetta-Permissive.def”,“include/Rosetta.tbl”,[])
Invoking native tool /home/sfinnie/bin/spoofax/plugins/org.strategoxt.imp.nativebundle_0.1.1.201302132043/native/linux/sdf2table [“-i”, “/home/sfinnie/projects/spoofax/rosetta/include/Rosetta-Permissive.def”, “-o”, “/home/sfinnie/projects/spoofax/rosetta/include/Rosetta.tbl”, “-m”, “Rosetta”]
Generating editor/Rosetta.main.esv

Generating editor/Rosetta-Syntax.esv

Generating editor/Rosetta-Syntax.generated.esv

Generating editor/Rosetta-Folding.esv

Generating editor/Rosetta-Folding.generated.esv

Generating editor/Rosetta-Outliner.esv

Generating editor/Rosetta-Outliner.generated.esv

Generating editor/Rosetta-Colorer.esv

Generating editor/Rosetta-Colorer.generated.esv

Generating editor/Rosetta-Builders.esv

Generating editor/Rosetta-Builders.generated.esv

Generating editor/Rosetta-Refactorings.esv

Generating editor/Rosetta-Refactorings.generated.esv

Generating editor/Rosetta-References.esv

Generating editor/Rosetta-References.generated.esv

Generating editor/Rosetta-Completions.esv

Generating editor/Rosetta-Completions.generated.esv

Generating include/Rosetta.packed.esv

Generating editor/java/rosetta/RosettaParseControllerGenerated.java

Generating editor/java/rosetta/RosettaParseController.java

Generating editor/java/rosetta/RosettaValidator.java

Generating build.properties

Generating .project

Generating editor/java/rosetta/Activator.java

Generating .classpath

Generating META-INF/MANIFEST.MF

Generating plugin.xml

Generating build.main.xml

Generating build.generated.xml

Generating .externalToolBuilders/Rosetta build.main.xml.launch

Generating .externalToolBuilders/Rosetta clean-project.xml.launch

Generating test/example.rml

Generating test/test-example.spt

Generating lib/editor-common.generated.str

Generating lib/refactor-common.generated.str

Generating lib/index-library.generated.str

Generating lib/analysis-library.generated.str

Generating lib/analysis-library-internal.generated.str

Generating lib/compilation-library.generated.str

Generating lib/nbl-library.generated.str

Generating lib-refactoring/behavior-preservation.generated.str

Generating lib-refactoring/namebinding-preservation.generated.str

Generating lib-refactoring/correctness-preservation.generated.str

Generating .settings/org.eclipse.jdt.core.prefs

Generating .gitignore

Build succesful.

Internal error: strategy does not exist or is defined in a module that is not imported: Definition ‘editor-analyze’ not found

rewriting failed

Internal error: strategy does not exist or is defined in a module that is not imported: Definition ‘editor-analyze’ not found

rewriting failed

Internal error: strategy does not exist or is defined in a module that is not imported: Definition ‘editor-analyze’ not found

rewriting failed

Also created an error dialog saying “Error loading compiler service provider(s): include/rosetta.ctree”. Detail says “No such file or directory”.

Submitted by Scott Finnie on 26 March 2013 at 23:21

On 15 April 2013 at 22:41 Vlad Vergu commented:

Closing as this is not reproducible on nightly.


On 15 April 2013 at 22:41 Vlad Vergu closed this issue.

Log in to post comments