Bug 230614 - Deleting source file leaves compiled java file behind
Summary: Deleting source file leaves compiled java file behind
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IMP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Robert M. Fuhrer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-06 18:59 EDT by Stan Sutton CLA
Modified: 2014-01-09 15:04 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Sutton CLA 2008-05-06 18:59:23 EDT
When you delete a source file in "new" language, the Java file that was compiled
from it, if any, is not deleted along with it.  This results in the accumulation
of compiled Java files that have no corresponding files in the original source
language.

This doesn't actually break anything, and it isn't a problem for demo-scale use
of SAFARI IDEs, so I've listed this bug as an "enhancement."  But this situation
could be quite annoying for real IDE users who are translating their languages
into Java, so I've left the priority relatively high.
Comment 1 Robert M. Fuhrer CLA 2008-05-06 18:59:27 EDT
We don't really have any mechanism for tracking what files get generated by a
given source file.

We also have this problem with AST classes and the LPG generator.

Perhaps we should add some API to SAFARI to help track this sort of thing.

Client compilers would have to explicitly identify the files they generate.
Comment 2 Stan Sutton CLA 2008-05-06 18:59:31 EDT
I just noticed another aspect of this problem (that I should have anticipated).
 The SMAP builder runs on the existing Java files and generates
ResourceException error messages when the original source files don't exist. 
Operationally this is not a problem, but it gunks up the console.
Comment 3 Robert M. Fuhrer CLA 2008-05-06 18:59:36 EDT
A very different take on the problem:

Developers want to see precisely and only the artifacts they create in their folders. They don't want to have to wade through generated artifacts while browsing through their projects.

So, arguably, generated artifacts (like Java source from LEG/X10 source) should not live alongside the original source from which they were generated. E.g., the JDT usually/optionally places class files in a separate folder from the Java source.
Comment 4 Robert M. Fuhrer CLA 2008-05-08 16:19:57 EDT
<gratuitous comment for change of status>