Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 101635 - UI allows bad config leading to "Source not found" in Debug
Summary: UI allows bad config leading to "Source not found" in Debug
Status: RESOLVED DUPLICATE of bug 100807
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 10:08 EDT by Terry Rosenbaum CLA
Modified: 2005-06-24 15:31 EDT (History)
0 users

See Also:


Attachments
HelloWorld.java source used in replicating problem (171 bytes, text/plain)
2005-06-24 10:10 EDT, Terry Rosenbaum CLA
no flags Details
.classpath file from project replicating problem (233 bytes, text/plain)
2005-06-24 10:11 EDT, Terry Rosenbaum CLA
no flags Details
.project file from project replicating problem (662 bytes, text/plain)
2005-06-24 10:13 EDT, Terry Rosenbaum CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Rosenbaum CLA 2005-06-24 10:08:24 EDT
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
Comment 1 Terry Rosenbaum CLA 2005-06-24 10:10:11 EDT
Created attachment 23940 [details]
HelloWorld.java source used in replicating problem

Added HelloWorld.java as attachment.
Comment 2 Terry Rosenbaum CLA 2005-06-24 10:11:25 EDT
Created attachment 23942 [details]
.classpath file from project replicating problem

Added .classpath file from project as attachment
Comment 3 Terry Rosenbaum CLA 2005-06-24 10:13:24 EDT
Created attachment 23943 [details]
.project file from project replicating problem

Added .project file from project replicating problem
Comment 4 Darin Wright CLA 2005-06-24 12:52:06 EDT
Works for me using RC4. I think this is a dup of bug 100807. Can you confirm 
this works in RC4?
Comment 5 Terry Rosenbaum CLA 2005-06-24 15:31:37 EDT
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 ***