Plugin settings is deleted everytime i upgrade CodeLite

CodeLite installation/troubleshooting forum
James85
CodeLite Curious
Posts: 1
Joined: Wed Aug 31, 2011 2:59 pm
Genuine User: Yes
IDE Question: c++
Contact:

Plugin settings is deleted everytime i upgrade CodeLite

Post by James85 »

Recently upgraded CodeLite to v3.0.50.41 only to discover that all my plugin settings is removed (i.e. my SnipWiz templates and more) :evil:

This is very annoying that this happens EVERY TIME i upgrade CodeLite and I manually have to enter the settings again. :x
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Plugin settings is deleted everytime i upgrade CodeLite

Post by eranif »

I am not sure of how SnipWiz plugin works since I am not the one who wrote it. You will have to ask Frank (forum name: frank_frl) or look at the source code to see how it works, in general all the settings should not be deleted by codelite (and I am pretty sure that this is the case), although I don't use SnipWiz and I can't answer that

If it happens every time, you should have reported it earlier ...
Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Plugin settings is deleted everytime i upgrade CodeLite

Post by frank_frl »

Hi James,

the SnipWiz plugin stores his settings in the \CodeLite\templates folder as 'SnipWiz.tmpl' (historical reasons), so if there is a version in the installer, it might be overwritten. ( I build CL myself from SVN, so I never had this problem)

There are two solutions:
Eran could change the installer, so that it will not be installed if it exists, or we change the path where it is stored.

Regards

Frank
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Plugin settings is deleted everytime i upgrade CodeLite

Post by eranif »

frank_frl wrote:the SnipWiz plugin stores his settings in the \CodeLite\templates folder as 'SnipWiz.tmpl' (historical reasons), so if there is a version in the installer, it might be overwritten. ( I build CL myself from SVN, so I never had this problem)
Frank, thanks for the explanation. I think that I might be better moving the .tmpl file to the %appdata%\codelite / ~./codelite/ directory so it won't be overwritten. I look into it

Eran
Make sure you have read the HOW TO POST thread
Post Reply