Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 57127 - Exception setting working directory during launch
Summary: Exception setting working directory during launch
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alain Magloire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 16:48 EST by Jared Burns CLA
Modified: 2004-05-07 11:29 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2004-04-01 16:48:55 EST
With the latest code from HEAD, I get the following exception when I try to launch a "C++ Local" 
application. Contrary to the error message, the directory "/home/jburns/tmp/deleteme/Hello C" 
does exist.

The problem seems to be related to the space in the pathname. If I remove the " C", it will launch 
correctly.

org.eclipse.cdt.debug.core.cdi.CDIException: Unable to set working directory: 
"/home/jburns/tmp/deleteme/Hello C": No such file or directory.
at org.eclipse.cdt.debug.mi.core.cdi.RuntimeOptions.setWorkingDirectory(RuntimeOptions.java:
101)
at org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDelegate.
launch(LocalCLaunchConfigurationDelegate.java:94)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:150)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:779)
at org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITools.java:629)
at org.eclipse.debug.ui.DebugUITools$3.run(DebugUITools.java:585)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
Comment 1 Nobody - feel free to take it CLA 2004-04-02 00:11:59 EST
Alain, please, take a look at this. The "environment-cd" command doesn't accept 
quotes on Linux, but works fine on Windows. 
Comment 2 Alain Magloire CLA 2004-04-05 16:19:16 EDT
>The problem seems to be related to the space in the pathname. If I remove the "
> C", it will launch correctly.

Yes, @*&$#&^(#, the inconsistency of gdb really annoys me.
And I lack time to fix it in gdb itself.

Thanks for the heads, I'll try to find a work around.
Comment 3 Alain Magloire CLA 2004-05-07 11:29:04 EDT
Allright fix in the head ... after &$#*#^$(&^#&( cursing
at gdb's behaviour.  Nothing is consistent .. sigh 8-)