Page 1 of 1

Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 10:06 am
by helloleoking
Today i try the newest version of CodeLite (3.x), when i closed the app, the error info showed:

Error:can't close file 'C:\Documents and Settings\Administrator\Application Data\CodeLite\codelite.log'(error 5:xxx)

What's wrong with my CL ? How can i make it well ?

P.S:
I have unchecked the Database plugin. If it is checked, there will be memory error when CL exits.

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 11:18 am
by eranif
It means that you don't have permissions to close the log file (error: 5)
Seems like you are running codelite not as admin, however your files are kept under the 'Administrator' directory.

Did you try and run codelite as admin?
My guess is that this is the problem you are facing with the DB plugin
Eran

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 12:13 pm
by helloleoking
eranif wrote:It means that you don't have permissions to close the log file (error: 5)
Seems like you are running codelite not as admin, however your files are kept under the 'Administrator' directory.

Did you try and run codelite as admin?
My guess is that this is the problem you are facing with the DB plugin
Eran
Thanks.

I'm sure that i am running codelite as admin.
Besides, I restarts my computer and unchecked(or checked, I have tried both) all plugins, this problem(close file error) still troubles me, but memory problem resolved.
And I'm sure i have the authority to modify/delete that log file(I delete this file serverl times in Windows Explorer manualy), CodeLite can write to the file as it is not empty, the content liks:

[ 15:53:56:140 SYS ] Log verbosity is now set to Error
[ 15:53:56:140 SYS ] Starting codelite...
[ 15:54:14:078 SYS ] Bye
[ 15:54:15:703 SYS ] Log verbosity is now set to Error
[ 15:54:15:703 SYS ] Starting codelite...
[ 15:54:25:359 SYS ] Bye
[ 15:54:34:671 SYS ] Log verbosity is now set to Error
[ 15:54:34:671 SYS ] Starting codelite...
[ 15:55:03:640 SYS ] Bye
[ 15:55:05:328 SYS ] Log verbosity is now set to Error
[ 15:55:05:328 SYS ] Starting codelite...
[ 15:55:15:812 SYS ] Bye
[ 15:55:23:765 SYS ] Log verbosity is now set to Error
[ 15:55:23:765 SYS ] Starting codelite...
[ 15:55:56:625 SYS ] Bye
[ 15:55:58:468 SYS ] Log verbosity is now set to Error
[ 15:55:58:468 SYS ] Starting codelite...
[ 15:56:30:906 SYS ] Bye
[ 15:56:32:656 SYS ] Log verbosity is now set to Error
[ 15:56:32:656 SYS ] Starting codelite...
[ 15:57:02:281 SYS ] Bye
[ 15:57:22:671 SYS ] Log verbosity is now set to Error
[ 15:57:22:671 SYS ] Starting codelite...
[ 15:57:33:765 SYS ] Bye
[ 16:01:44:359 SYS ] Log verbosity is now set to Error
[ 16:01:44:359 SYS ] Starting codelite...
[ 16:01:59:031 SYS ] Bye


There are two messages when CodeLite quits:
1) Error:can't close file 'C:\Documents and Settings\Administrator\Application Data\CodeLite\codelite.log'(error 5:xxx)
I click the OK button, then:
2) Error:can't close file 'C:\Documents and Settings\Administrator\Application Data\CodeLite\codelite.log'(error 0:xxx)
But it seems that closing operation completed.

I really don't know how to make it normal. Thank you.

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 12:59 pm
by eranif
Error:can't close file 'C:\Documents and Settings\Administrator\Application Data\CodeLite\codelite.log'(error 5:xxx)
Assuming that the code does not lie, error 5 means "Access denied" - so something is wrong with your permissions with this file or folder.
http://msdn.microsoft.com/en-us/library ... s.85).aspx

have you tried manually to add permissions for 'everyone' for this file?
Eran

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 2:03 pm
by borr
1.I have the same problem. I work for user with admin permissions. OS WinXP SP3.
2.Сlang Сodetsompletion not working.
--Enable Use Clang CodeCompletion
----Search path

Code: Select all

c:\mingw_441\lib\gcc\mingw32\4.4.1\include\c++
c:\mingw_441\lib\gcc\mingw32\4.4.1\include\c++\mingw32
c:\mingw_441\lib\gcc\mingw32\4.4.1\include\c++\backward
c:\mingw_441\include
c:\mingw_441\lib\gcc\mingw32\4.4.1\include
c:\mingw_441\lib\gcc\mingw32\4.4.1\include-fixed
D:\wxMSW-2.8.10\include

Code: Select all

#include <ole2.h>
VARIANT param;
VariantInit(&param);
param./*No Codecompletion*/

struct test{
int One;
double Two;
};

test./*No CC*/

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 4:08 pm
by eranif
borr wrote:2.Сlang Сodetsompletion not working.
You should understand what you are doing.
clang is a full blown compiler. Your code must be a compile-able code (at least the basic grammar)

If you only check 'Enable Use Clang CodeCompletion' then ctags completes it with only 2 variables. However, if you enable it to be the top completion engine by checking this "Use clang completion over ctags completion" it will display a complete completion suggestion:
Please read this: http://www.codelite.org/LiteEditor/ClangIntegration
clang-cc.png
About the log error: I cant seem to reproduce it here, I will see what I can do about it.
Eran

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 4:21 pm
by eranif
Please see this and see if it fixes your log error problem:
http://codelite.org/forum/viewtopic.php ... 6609#p6609

Eran

Re: Exit CodeLite 3 Problem

Posted: Tue Aug 30, 2011 4:45 pm
by helloleoking
eranif wrote:Please see this and see if it fixes your log error problem:
http://codelite.org/forum/viewtopic.php ... 6609#p6609

Eran
Thanks.