Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327167 - Path mapping editor converts normal slashes to backslashes
Summary: Path mapping editor converts normal slashes to backslashes
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 9.0.0   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on: 472765
Blocks:
  Show dependency tree
 
Reported: 2010-10-06 19:32 EDT by Jakub CLA
Modified: 2016-04-12 06:10 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub CLA 2010-10-06 19:32:30 EDT
Build Identifier: 20100917-0705

When editing a path maping using Preferences > C/C++ > Debug > Common Source Lookup Path, the compilation path will convert all forward slashes do backslashes. This prevents the user to enter the correct path for cygwin. 
I.E. if users need to enter new path mapping to a cygdrive (from C:\Documents to /cygdrive/c/Documents), they end up with backslashed path (\cygdrive\c\Documents).
If the cygwin path contains some backslash-escaped spaces, they do not get converted and break the path. 

Reproducible: Always

Steps to Reproduce:
1. Create a new Path Mapping
2. Enter POSIX-style cygwin path to compilation path
3. forward slashes get converted
Comment 1 Martin Oberhuber CLA 2013-05-14 07:46:59 EDT
CQ:WIND00DE688
Comment 2 Nobody - feel free to take it CLA 2013-05-14 09:24:24 EDT
(In reply to comment #1)
> CQ:WIND00DE688

Martin, just out of curiosity, what does this cryptic message mean? :) I have seen you add them before but never had a chance to ask.
Comment 3 Martin Oberhuber CLA 2013-05-15 11:11:31 EDT
(In reply to comment #2)
> > CQ:WIND00DE688
> Martin, just out of curiosity, what does this cryptic message mean?

It is a cross-reference to our Wind River internal bug tracking system. Having that special pattern in a comment helps me make bugzilla queries to show current status of those bugzilla items that refer to an internal tracking item.

Sometimes it takes years until a "cosmetic" issue in Eclipse or CDT is resolved. It also isn't important for us to contribute a patch ourselves. Thanks to the Xref, I can update (and close) internal tracking items related to bugzilla's that were fixed with a given release of Eclipse or the CDT when we adopt it.

I also have cross references the other way round, so if somebody adds a comment (or finds a solution) internally, I can update bugzilla.
Comment 4 Jonah Graham CLA 2016-04-12 06:10:30 EDT
This bug has been fixed as part of the Source Lookup work in Bug 472765.

It has been resolved by using Strings instead of Path type when storing and displaying compilation paths.