Backslash issues with workspace/project files

Discussion about CodeLite development process and patches
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

Backslash issues with workspace/project files

Post by Roey »

Hi,

I've created a workspace\project on Windows, then when trying to open it on a mac I had a few issues since the XML files of the workspace\project contained backslashes.

This was fixed by changing all backslashes to forward-slashes.

I believe that in order to have a better UNIX/Windows compatibility, CodeLite should only use forward-slashes in its files...
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Backslash issues with workspace/project files

Post by eranif »

Roey wrote:I believe that in order to have a better UNIX/Windows compatibility, CodeLite should only use forward-slashes in its files...
codelite uses wxFileName which uses the native paths.

A quick workaround is run the script le_dos2unix.sh

grab a copy from here:
http://codelite.svn.sourceforge.net/vie ... vision=937

and then run it from the root dir of your workspace - it will fix each project/workspace file it can find and replace / with \ also it will replace .lib->.a and .dll->.so

Eran
Make sure you have read the HOW TO POST thread
Post Reply