Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312983 - EDC can't launch if working directory is not the default one
Summary: EDC can't launch if working directory is not the default one
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-edc (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows Server 2003
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 17:36 EDT by Daniel Herb CLA
Modified: 2010-05-27 10:12 EDT (History)
0 users

See Also:


Attachments
fix (5.01 KB, patch)
2010-05-26 16:49 EDT, Ken Ryall CLA
ken.ryall: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Herb CLA 2010-05-14 17:36:14 EDT
Build Identifier: 201005141101

Happens if the working directory in the launch configuration is set to a directory different from the default.
When trying to debug the project the following error appears:

Error in final launch sequence.
org.eclipse.core.runtime.CoreException: TCF error report:
Command: Processes start "${workspace_loc:Foo/run}", "C:\\projects\\Foo...
Time: 2010-05-14 23:33:00.171
Error text: Unknown error
Error code: 1
Alt code: 267
Alt org: POSIX
TCF error report:
Command: Processes start "${workspace_loc:Foo/run}", "C:\\projects\\Foo...
Time: 2010-05-14 23:33:00.171
Error text: Unknown error
Error code: 1
Alt code: 267
Alt org: POSIX
TCF error report:
Command: Processes start "${workspace_loc:Foo/run}", "C:\\projects\\Foo...
Time: 2010-05-14 23:33:00.171
Error text: Unknown error
Error code: 1
Alt code: 267
Alt org: POSIX

Reproducible: Always
Comment 1 Daniel Herb CLA 2010-05-16 14:22:06 EDT
Looks like the expression (e.g. "${workspace_loc:BotClient/run}") is not correctly evaluated, because the if you put in an absolute path without any expressions it works well.
Comment 2 Ken Ryall CLA 2010-05-26 16:49:23 EDT
Yep, it wasn't expanding workspace variables. Thanks for catching this.
Comment 3 Ken Ryall CLA 2010-05-26 16:49:42 EDT
Created attachment 170098 [details]
fix