Community
Participate
Working Groups
Using: Eclipse SDK 3.1 RC3 Version: 3.1.0 Build id: I20050617-1618 Problem: UI allows incorrect configuration leading to "Source not found" in Debug What I was trying to do: Have my output folder be a folder (linked) named classes and have my source folders be directly under the project instead of one level lower in a sub-folder (e.g. "src") of the project. The motivation is to avoid one level of unnecessary indentation in the navigator yet keep my class and source files in separate folder trees. Replicating the problem: 1) Starting Directory structure: C:\temp\EclipseTest\ classes\ source\ com\ hello\ HelloWorld.java workspace\ 2) Start Eclipse and use C:\temp\EclipseTest\workspace as workspace 3) Use wizard to create a new Java Project (File -> New Project) select "Java Project" then Next> enter Project Name: HelloWorld (leave all other settings at their defaults including "Use project folder as root for sources and class files" checked) Finish 4) Create a linked folder called "classes" - link to C:\temp\EclipseTest\classes (File -> New -> Folder) Folder Name: classes Advanced>> Link to folder in the file system (type C:\temp\EclipseTest\classes) Finish 5) Select HelloWorld Project, right mouse -> Properties -> Java Build Path Source tab Enter HelloWorld/classes in "Default output folder:" 6) Create a linked folder called "com" - link to C:\temp\EclipseTest\source\com (File -> New -> Folder) Folder Name: com Advanced>> Link to folder in the file system (type C:\temp\EclipseTest\source\com) Finish 7) Open com/hello/HelloWorld.java and set a breakpoint in main 8) Run -> Debug... -> Java Application -> New (should see new definition for debugging with Main Class com.hello.HelloWorld) Press "Debug" button 9) Switch to Debug perspective 10) Execution is suspended at breakpoint, HelloWorld.java is open in editor, but have "Source not found." message along with "Edit Source Lookup Path..." button. Unable to cause location of source through use of lookup path editor. Expected result: 1) Source and class files in folders as I layed them out 2) Debugger able to open source files Actual result: 1) Source and class files in folders as I layed them out 2) Debugger unable to open source files - "Source not found." error instead
Created attachment 23940 [details] HelloWorld.java source used in replicating problem Added HelloWorld.java as attachment.
Created attachment 23942 [details] .classpath file from project replicating problem Added .classpath file from project as attachment
Created attachment 23943 [details] .project file from project replicating problem Added .project file from project replicating problem
Works for me using RC4. I think this is a dup of bug 100807. Can you confirm this works in RC4?
As to whether or not this is a "duplicate" of 100807, it may be. However, since no symbolic links nor any case sensitivity issues were involved, I thought not. Also on a different platform (PC vs. Linux). However, can confirm that when using: Version: 3.1.0 Build id: I20050624-0010 it works for me too. So, I will presume this to be a dup. of 100807 based on the likelyhood that a fix for 100807 also fixed this bug. Marking as duplicate of 100807. *** This bug has been marked as a duplicate of 100807 ***