Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312983

Summary: EDC can't launch if working directory is not the default one
Product: [Tools] CDT Reporter: Daniel Herb <physhh>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:
Attachments:
Description Flags
fix ken.ryall: iplog-

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