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
Can project file and source files be on differernt drives
-
- CodeLite Curious
- Posts: 1
- Joined: Thu Jul 13, 2017 12:20 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Guru
- Posts: 352
- Joined: Sun Nov 29, 2009 7:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Can project file and source files be on differernt drive
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!
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!
CodeLite 15.x
CodeLite is awesome, I just Love it!
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Can project file and source files be on differernt drive
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
And the project files are stored relative to the workspace file.
This design implies that the entire workspace must be on the same drive
Make sure you have read the HOW TO POST thread