Page 1 of 1

Can project file and source files be on differernt drives

Posted: Thu Jul 13, 2017 12:34 am
by lhayesg
Hello,

I run codelite on Windows and have a network map to a Linux VM where my source code lives.
When I create a new project, I would like my project file xxx.project file to be on my windows machine.
Then I import existing source from the network drive. So far so good, I get a list of files under the new project.

But when I go to open a file in the editor I get:
15:06:49: Failed to open: C:\workspace\trunk\xxx\xxx.cpp: No such file or directory

My files live on Y:\workspace\trunk\xxx\xxx.cpp

It seems like codelite does not remember the drive of the files it imports and uses the drive of the project.
If I create the project and have the project file live in Y:\workspace\trunk\xxx the everything is OK.

Is there a way to separate the project file from the source and have it work?

Thanks
Larry

Re: Can project file and source files be on differernt drive

Posted: Thu Jul 13, 2017 8:57 am
by evstevemd
Am not sure I understand your query, but if all you want is project and src in separate files then create project where you want it to be and then create virtual folder (uncheck the option to create directory too) and then right click VF and select add existing. Navigato to where sources are and that is it.

Note that the drive must be mounted Prior to running CL and AFAIK it must have the same letter/path or else CL will not find the files

Let me know if I misunderstood your question!

Re: Can project file and source files be on differernt drive

Posted: Thu Jul 13, 2017 11:51 am
by eranif
All files in a C++ project are kept relative to the project file.
And the project files are stored relative to the workspace file.
This design implies that the entire workspace must be on the same drive