Exit CodeLite 3 Problem

General questions regarding the usage of CodeLite
helloleoking
CodeLite Enthusiast
Posts: 10
Joined: Sun Aug 01, 2010 8:12 pm
Genuine User: Yes
IDE Question: C++
Contact:

Exit CodeLite 3 Problem

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Exit CodeLite 3 Problem

Post 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
Make sure you have read the HOW TO POST thread
helloleoking
CodeLite Enthusiast
Posts: 10
Joined: Sun Aug 01, 2010 8:12 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Exit CodeLite 3 Problem

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Exit CodeLite 3 Problem

Post 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
Make sure you have read the HOW TO POST thread
borr
CodeLite Enthusiast
Posts: 34
Joined: Tue Dec 16, 2008 10:43 am
Contact:

Re: Exit CodeLite 3 Problem

Post 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*/
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Exit CodeLite 3 Problem

Post 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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Exit CodeLite 3 Problem

Post by eranif »

Please see this and see if it fixes your log error problem:
http://codelite.org/forum/viewtopic.php ... 6609#p6609

Eran
Make sure you have read the HOW TO POST thread
helloleoking
CodeLite Enthusiast
Posts: 10
Joined: Sun Aug 01, 2010 8:12 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Exit CodeLite 3 Problem

Post 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.
Post Reply