Bug 243043 - Can't find files with relative paths
Summary: Can't find files with relative paths
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 5.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-04 05:21 EDT by D.T. CLA
Modified: 2020-09-04 15:19 EDT (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 D.T. CLA 2008-08-04 05:21:37 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. Start a C++ application.
2. Add external folders to project.
3. Start debuger.
4. Debuger cant find the files and you are promted to manually open them, even the paths in debuger are correctly.



More information:
Comment 1 Elena Laskavaia CLA 2008-08-05 11:31:14 EDT
Can you please elaborate?
What is " Start a C++ application"? Create a project? Managed?
What is "Add external folders to project"? Add Linked resource? Was it marked as source folder? How project was compiled? Does paths in binary matching ones on the host? 
What is "the paths in debuger are correctly"? Correctly what? Where in debugger?
Comment 2 D.T. CLA 2008-08-07 05:59:43 EDT
(In reply to comment #1)
> Can you please elaborate?
> What is " Start a C++ application"? Create a project? Managed?
> What is "Add external folders to project"? Add Linked resource? Was it marked
> as source folder? How project was compiled? Does paths in binary matching ones
> on the host? 
> What is "the paths in debuger are correctly"? Correctly what? Where in
> debugger?
> 

Ok, maybe i was in a hurry and i didnt show the steps correctly.

Considering a C++ application, I have add some new folders linked to file system.
Now, when I debug the application, I get the next errors on every file:

"Can't find a source file at "../../some paths" 
Locate the file or edit the source lookup path to include its location."

But the problem is when I press "Edit Source Lookup" all the paths are here correctly added.

Thanks in advance.
Comment 3 Elena Laskavaia CLA 2008-08-07 09:23:29 EDT
Can you try of the 5.0.1 builds, I fixed similar error recently
Comment 4 D.T. CLA 2008-08-12 03:11:04 EDT
(In reply to comment #3)
> Can you try of the 5.0.1 builds, I fixed similar error recently
> 

Same problem, is not working.
Comment 5 Elena Laskavaia CLA 2008-08-12 09:21:52 EDT
"Can't find a source file at "../../some paths" 

Looks like you compiler inserts relative paths, if you add <dir> to your source lookup does it make real path: <dir>/../../some paths?
Comment 6 Ken Ryall CLA 2009-01-02 11:44:10 EST
What happens if you tell it where the file is instead of editing the source lookup paths?