Hello, guest. We have noticed that you are not registered at this bug tracker. Your experience will be greatly enhanced if you log in. To do so, you first must register by clicking on the Register tab at the top. If you are already registered, you can login at the Login tab.
Syndicate Syndicate Listing Display Search Login/Register
Bug Id ?
224
Reporter ?
davemee
MacGDBp / 1.4.1
Status ?
Closed
Severity ?
Moderate
Duplicate Of ?
- none -
Fixed in Revision ?
8824d68d7c25a3d2d6b3889fc4ce5951a5106879
Mstone ?
Summary ?
Spaces in paths are converted back into "% " sequence instead
Report Time ?
June 13, 2011 04:00 PM
Assignment ?
Resolution ?
Fixed
Priority ?
Normal
Dependencies ?
- none -
Mstone (old) ?


Votes
For: 1 (100%)
Against: 0 (0%)
Total: 1

June 13, 2011 04:00 PM davemee
This (from the Connection Log)

source -f file:///mnt/hgfs/davem/Documents/Ongoing/Project/5%%20-%%20Production/dev/HTDOCS/phpinfo.php -i 4

happens with the following error from the browser

Warning: main(/mnt/hgfs/davem/Documents/Ongoing/project/5% -% Production/dev/HTDOCS/phpinfo.php) [function.main]: failed to open stream: No such file or directory in /mnt/hgfs/davem/Documents/Ongoing/Corby Theatre/5 - Production/dev/HTDOCS/phpinfo.php on line 3

where it looks like the %%20 is mapped into "% " rather than " ".

I do not know where the erroneous encoding is coming from, but the paths are entered correctly into MacGDBp. (in fact, they're symlinks, and 'aliases' on the mac side)


June 13, 2011 04:02 PM davemee
Of course - obvious mistake in the comment I left.

Warning line should read:

Warning: main(/mnt/hgfs/davem/Documents/Ongoing/project/5% -% Production/dev/HTDOCS/phpinfo.php) [function.main]: failed to open stream: No such file or directory in /mnt/hgfs/davem/Documents/Ongoing/project/5 - Production/dev/HTDOCS/phpinfo.php on line 3

There goes my cover!

August 6, 2011 07:58 PM d1941b
If a source file path contains a space it is given to MacGDBp url encoded, i.e. %20. The code in DebuggerBackEnd.m in routine loadStackFrame on line 204 unconditionally replaces any "%" with "%%". As a result the file is not found and the error: "can not open file" appears.

I downloaded version 1.5 beta and eliminated the percent duplication and files in a folder containing a space are now opened and can be debugged without an issue.

March 30, 2012 02:03 AM OsamaBinLogin
related: when I copy text out of the debug source windows, spaces are changed to nbsp characters. It's ok to display but I copy out text and then try to search for it in other places, and this makes it very tedious.

September 4, 2019 01:46 PM Robert
Fixed in master.

On September 4, 2019 01:46 PM, Robert changed: