Bug 354713 - File outside of project is being compiled
Summary: File outside of project is being compiled
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 02:09 EDT by Yuriy CLA
Modified: 2012-01-02 08:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy CLA 2011-08-15 02:09:43 EDT
Build Identifier: I20110613-1736

Lots of these errors in the error log (with debug enabled):

<quote>
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -debug -clean

Error
Sun Aug 14 22:40:49 PDT 2011
File outside of project is being compiled: FileName.java
</quote>
This is the complete "Error Details" content.

There are lots of these errors each time build happens listing many files that are in reality safely asleep very much inside project source directories.

in the end build fails with an NPE logged in as a separate bug.

Reproducible: Always
Comment 1 Andrew Clement CLA 2011-08-15 14:06:34 EDT
Are the files that get reported in any way special?  Are they generated?
Comment 2 Yuriy CLA 2011-08-15 15:16:42 EDT
nothing special about the files - they are from various real source folders
and contain rather mundane code - most of them are .java and a couple are .aj
Comment 3 Yuriy CLA 2011-08-15 16:42:38 EDT
one more little thing - I have just downloaded eclipse-SDK-3.6.2-linux-gtk-x86_64.tar.gz (eclipse.buildId=M20100211-1343)

and the same project builds just fine.
Comment 4 Andrew Clement CLA 2011-08-15 19:31:30 EDT
so is this still an issue for you? Was the other eclipse version 3.7?
Comment 5 Yuriy CLA 2011-08-15 20:24:03 EDT
Yes the bug occurred on 3.7, I will be using 3.6 for now so I am not blocked on it. But will be happy to switch back to 3.7.

One thing I may need to clarify - the files are nothing special - just not the default "src" - all the sources in the project are in all kinds of folders - I am using eclipse on top of existing non-ide project structure. It is true though that the files that are named in the errors are no different from other files residing in same directories.
Comment 6 Andrew Clement CLA 2011-08-16 12:53:29 EDT
We just can't seem to recreate this issue.  Are you able to share the project with me? (privately?)

Failing that, can you maybe let us see your .classpath file so we can look for something unusual in it?

thanks.
Comment 7 Yuriy CLA 2011-08-16 17:25:10 EDT
I would not be able to send you the whole project.
Sadly, it would not even help anymore :(
I have just switched back to 3.7 to make sure I can still reproduce it and I can't.
My bad for not saving a snapshot earlier.
BUT - after I installed 3.6 - the project was ok there and I have fixed up all the compile problems and rushed on with work (deadlines you know).
So I have just reopened it in 3.7 to make sure I can reproduce it still and it's NOT there.
I will try to recreate the situation after I have more progress to show to my employer.

as far as the .classpath file - I did look at it and there was nothing to distinguish it from another (from a similar project that did not have a problem).
Comment 8 tarek CLA 2012-01-02 08:19:45 EST
Hi there,

I encountered the same error in indigo SR1, switching back to 3.6.2 (using my original workspace, see below) did not help, neither using the ajdt development build (2.2.0) - the NPE Yuriy filed in the other bugreport got resolved there, but not the original problem.

What "solved" the issue was using a new, empty workspace and checking out all projects again - now it works even in 3.7.1 (still using ajdt 2.2.0, but i guess the stable build would work, too).