Some files in a Spoofax project are re-created during each build. Marking these as derived makes Eclipse warn you when trying to edit.

Submitted by Nathan Bruning on 28 May 2010 at 12:45

On 28 May 2010 at 13:11 Lennart Kats closed this issue.

On 28 May 2010 at 13:11 Lennart Kats commented:

DynamicDescriptorBuilder.setDerivedResources() currently already marks most generated files as derived. IIRC the only exceptions are build.generated.xml and lib/editor-common.generated.str since they are required for clean builds (see Spoofax/64 and the FAQ). If they were marked derived they could not be checked in to version control. If there are any other files that should be marked derived, please reopen this issue.


On 28 May 2010 at 13:21 Nathan Bruning commented:

In particular, editor/java/Activator.java.

Also, would it not be better to always generate a (derived) BaseActivator and provide customization abilities by generating an empty subclass of BaseActivator (just once)?


On 28 May 2010 at 13:22 Nathan Bruning reopened this issue.

On 28 May 2010 at 13:29 Lennart Kats commented:

Right, that’s another exception -_-;; It’s quite annoying that “derived” is used for both warning users about derived files and for version control. In the case of the editor/java files, I often end up checking them into subversion because Eclipse reports errors if you have a clean checkout and they don’t exist. Maybe this is not a big problem anymore now that the build script refreshes these files, but that would have to be tested.

Indeed, using a generated AbstractActivator.generated.java would probably be much nicer than simply overwriting the files as we do right now. karltk also wanted to change the ParseController class at some point, so the same pattern could be used there.


On 12 June 2010 at 13:03 Lennart Kats commented:

Duplicates of this issue: Spoofax/175, Spoofax/259.


On 25 October 2010 at 14:05 Bernhard Merkle commented:

include/EntitiyLang.packed.esv is currently NOT marked as Eclipse derived.
Hence SVN wants to checkin this file or marks it with a question mark. this is a bug.

I think the whole “include” Folder should be marked as “derived”.
Thanks for fixing this.


On 23 November 2011 at 13:02 Lennart Kats removed tag 1.0

On 23 November 2011 at 13:02 Lennart Kats tagged interesting

On 23 November 2011 at 13:09 Lennart Kats tagged 1.1

On 23 November 2011 at 13:10 Lennart Kats removed tag interesting

On 16 December 2012 at 11:29 Guido Wachsmuth tagged @vvergu

On 8 January 2013 at 12:56 Eelco Visser removed tag 1.1

On 8 January 2013 at 12:56 Eelco Visser tagged interesting

On 8 January 2013 at 17:20 Gabriël Konat tagged eclipse

On 1 February 2013 at 11:13 Guido Wachsmuth tagged 1.2

On 11 February 2013 at 14:02 Guido Wachsmuth commented:

The include folder is indeed an issue. If you have mix-ins, the generated def and tbl files are not marked as derived.


On 11 February 2013 at 14:09 Guido Wachsmuth commented:

Another folder to mark derived is lib-refactoring.


On 14 August 2013 at 22:34 Gabriël Konat removed tag interesting

On 13 March 2014 at 08:53 Eelco Visser removed tag 1.2

Log in to post comments