When running a custom builder after restarting Eclipse or rebuilding the Spoofax project, I get:

java.lang.IllegalStateException: Task engine has not been set-up, use task-setup(|project-path) to set up the task system before use.

The custom build uses an nabl property. After editing the file, the builder works.

Submitted by Sebastian Erdweg on 8 May 2014 at 11:12

On 8 May 2014 at 11:25 Guido Wachsmuth commented:

Do you call the mentioned task-setup strategy in the custom builder? If not, you should add this call. Same holds for index-setup.

On 8 May 2014 at 11:27 Sebastian Erdweg commented:

Ok. What is the project path? Can you give an example?

On 8 May 2014 at 11:52 Guido Wachsmuth commented:

You need to do this in the builder strategy:

your-builder: (selected, position, ast, path, project-path) -> (filename, result)
   index-setup(|<language>, project-path);
   filename := ...
   result:= ...

On 8 May 2014 at 13:20 Sebastian Erdweg commented:

Thanks, that solves the issue.

On 8 May 2014 at 13:22 Guido Wachsmuth closed this issue.

Log in to post comments