Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Loaden on April 28, 2009, 10:34:31 am

Title: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Loaden on April 28, 2009, 10:34:31 am
exec codesnippets.exe,it's can't delete default.conf.cbTemp file when exit.
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Pecan on April 28, 2009, 05:55:54 pm
Could you be more specific. Give an example. What are the steps to reproduce the problem?
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: MortenMacFly on April 28, 2009, 07:59:24 pm
Could you be more specific. Give an example. What are the steps to reproduce the problem?
...just do something in with the stand-alone CodeSnippets that will save it's settings in the default.conf file (e.g. go through the options dialog). Then exit the application. You will have default.conf (new) and default.conf.cbTemp (old) in the same folder.
I realised this , too but I wonder why the stand-alone executable modifies C::B's config file at all?!
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Pecan on April 29, 2009, 03:22:42 pm
...
...but I wonder why the stand-alone executable modifies C::B's config file at all?!

Thanks, I'll try to fix it.

It modifies its own *copy* of the config if the user makes any changes, not the config itself.

I suspect that attempting to save a copy by the same name as the conf is causing the problem. I'll check it out.


Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Pecan on April 29, 2009, 04:14:54 pm
...
...just do something in with the stand-alone CodeSnippets that will save it's settings in the default.conf file (e.g. go through the options dialog). Then exit the application. You will have default.conf (new) and default.conf.cbTemp (old) in the same folder.
I realised this , too but I wonder why the stand-alone executable modifies C::B's config file at all?!

I've tried 40 minutes to get the error. It won't occur for me.

Are we talking Linux or Windows?

Are you running CodeSnippets.exe with or with out CB running?
Is CodeSnippets activated or disabled in CB?

What option is being changed?
Is this caused by the first run or every run?

What folder has the default.conf and .cbtemp in it?

Can you give me a step by step?
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Jenna on April 29, 2009, 04:35:18 pm
On linux (64-bit debian) I have no problems, on windows (xp sp3 32-bit) with codesnippets from svn r5488, there are also no problems, with codesnippets from svn r5549 the issue occurs.
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Pecan on April 29, 2009, 05:57:12 pm
On linux (64-bit debian) I have no problems, on windows (xp sp3 32-bit) with codesnippets from svn r5488, there are also no problems, with codesnippets from svn r5549 the issue occurs.

I updated to 5552 and tried every combination I could think of and still cannot get the error.

I wonder if it could be an XP3 thingy. I'm using MS XP2.

At this point, I'm ready to turn the "external" feature off.

It was only created to get around wxAUI on Linux in the days when wxAUI floating windows didn't work very well. Back then, I needed a frame to do the same things on Linux that I did on Windows.

Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Pecan on April 29, 2009, 08:01:53 pm
Would someone who is getting the  error "can't delete default.conf.cbTemp" try SVN 5553 to see if it solves the problem.

thanks

Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Jenna on April 29, 2009, 08:56:47 pm
Would someone who is getting the  error "can't delete default.conf.cbTemp" try SVN 5553 to see if it solves the problem.

thanks


For me it's still there (tested on virtual w2k sp4 machine).
It seems to be gone after reverting the changes to "configmanager.cpp" (from C::B sdk), made in svn r5534.
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Jenna on April 29, 2009, 09:03:45 pm
It seems to be gone after reverting the changes to "configmanager.cpp" (from C::B sdk), made in svn r5534.

Sorry, my error, after reverting, it's still there, but in "$APPDATA\codesnippets", and not in "$APPDATA\codeblocks", so I did not see it at the first look.

EDIT:
It saves correctly to "default.conf", it just do not delete the ".cbTemp"-file .
Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Pecan on April 29, 2009, 09:21:08 pm
...
Sorry, my error, after reverting, it's still there, but in "$APPDATA\codesnippets", and not in "$APPDATA\codeblocks", so I did not see it at the first look.

EDIT:
It saves correctly to "default.conf", it just do not delete the ".cbTemp"-file .

Is it just not deleting the file or is it giving some sort of error message?

Do you actually get some sort of wxMessageBox or an MS error box with an error message in it?

Or is the OP just saying that the .cbtemp file is benignly left in the folder? Is this actually a problem or just a complaint about garbage files? Am I getting thrown by the OP's use of the word "can't"?

I've been operating under the idea that this was halting the shutdown system for people.

If it's not causing an error for CB, I can just put it on the "todo" list.

Title: Re: CodeSnippets can't delete default.conf.cbTemp when exit
Post by: Loaden on May 25, 2009, 02:35:13 pm
Sorry! Since 2009-05.01, I don't use C::B, because i want build GCC on Windows/Linux/MSYS/Cygwin/Cross.

And today, I build SVN5607, and the default.conf.cbTemp still exist when quit codesnippets.exe.