Page 1 of 1

[SOLVED] Code lite cannot access project folder

Posted: Sat May 02, 2015 9:51 pm
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?

Re: Code lite cannot access project folder

Posted: Sat May 02, 2015 9:57 pm
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

Re: Code lite cannot access project folder

Posted: Sat May 02, 2015 10:04 pm
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.

Re: Code lite cannot access project folder

Posted: Sat May 02, 2015 10:10 pm
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

Re: Code lite cannot access project folder

Posted: Sat May 02, 2015 10:14 pm
by gtsiam
That was the default, but thank you. Changing that fixed the problem.