[SOLVED] Code lite cannot access project folder

General questions regarding the usage of CodeLite
gtsiam
CodeLite Curious
Posts: 9
Joined: Mon Feb 02, 2015 11:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

[SOLVED] Code lite cannot access project folder

Post by gtsiam »

I created a project, but Codelite cannot clean the directory.
whenever I press Clean, I get:
C:\Windows\system32\cmd.exe /C C:/MinGW-4.8.1/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f Makefile clean
"----------Cleaning project:[ downloads - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CodeLite/Hellenico_Problems/downloads'
rm -f -r ./
rm: cannot remove `.' or `..'
mingw32-make.exe[1]: *** [clean] Error 1
mingw32-make.exe: *** [clean] Error 2
downloads.mk:108: recipe for target 'clean' failed
mingw32-make.exe[1]: Leaving directory 'C:/CodeLite/Hellenico_Problems/downloads'
Makefile:7: recipe for target 'clean' failed
2 errors, 0 warnings
Also, when I press build, the program runs without any build errors, completely ignoring the code. For example, this:

Code: Select all

lohsuansldfm;als
would run fine, as long as there is a previous compilation

Note that my project is in C:\, and that it worked just fine when I first created it!

The problem, though, is fixed when I run as administrator.

Any suggestions to avoid that?
Last edited by gtsiam on Sat May 02, 2015 10:15 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code lite cannot access project folder

Post by eranif »

gtsiam wrote:Note that my project is in C:\, and that it worked just fine when I first created it!
The problem, though, is fixed when I run as administrator.
Well... the solution is obvious then... don't create the project under C:\ or run codelite as admnin
I can't see any other choices here

Eran
Make sure you have read the HOW TO POST thread
gtsiam
CodeLite Curious
Posts: 9
Joined: Mon Feb 02, 2015 11:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code lite cannot access project folder

Post by gtsiam »

That's what I am doing right now, but I would apreciate it if I could avoid that (bug?).
Also, It doesn't matter where I create the project, the error remains. I just mentioned that to point out that there are no whitespaces.

I forgot to mention that I' m using v7.0.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code lite cannot access project folder

Post by eranif »

I wonder: why is your intermediate folder set to "./" ? notice that the 'clean' will remove the intermediate folder
Did you change it from the default? *Debug/Release" ?

The intermediate folder is the folder where objects are being kept, usually its under "Debug", "Release" etc

Project settings->common settings->general->intermediate directory

Eran
Make sure you have read the HOW TO POST thread
gtsiam
CodeLite Curious
Posts: 9
Joined: Mon Feb 02, 2015 11:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code lite cannot access project folder

Post by gtsiam »

That was the default, but thank you. Changing that fixed the problem.
Post Reply