| 
| Incremental compiler classpath [message #260498] | Mon, 08 June 2009 09:13  |  | 
| Eclipse User  |  |  |  |  | I noticed that sometimes a reference (such as import) is not found by the incremental compiler in the Java editor context, even though the build
 found no errors.
 In particular this happens with some class files that are produced in the
 project output folder which are not based on source files in the src
 folder.
 
 This creates an inconsistent state in which the errors and project panes
 show no error marks but the editor shows compilation errors.
 
 This appears to be a bug in the way the incremental Java compiler uses the
 project classpath, as it is ignoring the files in the output folder not
 present in the same package names in the src folder.
 
 Thanks.
 
 -- Reuben
 |  |  |  | 
|  | 
|  | 
|  | 
| 
| Re: Incremental compiler classpath [message #260514 is a reply to message #260510] | Mon, 08 June 2009 15:14  |  | 
| Eclipse User  |  |  |  |  | Daniel Megert wrote: 
 > Reuben Sivan wrote:
 >> Eric Rizzo wrote:
 >>
 >>> Reuben Sivan wrote:
 >>>> I noticed that sometimes a reference (such as import) is not found
 >>>> by the incremental compiler in the Java editor context, even though
 >>>> the build found no errors.
 >>>> In particular this happens with some class files that are produced
 >>>> in the project ᅵoutputᅵ folder which are not based on source
 >>>> files in the src folder.
 >>>>
 >>>> This creates an inconsistent state in which the errors and project
 >>>> panes show no error marks but the editor shows compilation errors.
 >>>>
 >>>> This appears to be a bug in the way the incremental Java compiler
 >>>> uses the project classpath, as it is ignoring the files in the
 >>>> output folder not present in the same package names in the src folder.
 >>
 >>> If you have some process that is dumping files into the build output
 >>> directory without letting Eclipse know, then it is "working as
 >>> designed." By default, Eclipse does not monitor the file system for
 >>> arbitrary changes (although there is a preference setting to make it
 >>> do that, I think), so if some files are changed or added you have to
 >>> Refresh in order for Eclipse to be aware of them.
 >>> How are these special files being inserted into the output folder?
 >>
 >>> Eric
 >>
 >> The files are created by a particular ant task.
 > That Ant task should generate the class files into a class folder which
 > resides on the Java build path and not directly into the Java Core owned
 > bin folder.
 
 > Dani
 
 
 Great advise, this did the trick. Thanks a lot, Dani
 Reuben
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.13623 seconds