Closed limelect closed 3 years ago
Thx for your report. Sorry you've met a problem with the update.
There are several possible causes and solutions depending on how you were using CodeSnip.
Furthermore, solutions for your own snippets collection and for the one I provide are different.
So I can diagnose what's going on I'll need some more info. So can you clarify a few points for me please?
Once you get back to me with the info I'll try to come up with a solution.
Regards Peter
2.If it's 4.15.1 portable did you copy 4.18.0 portable into the same directory or a different one? No 4.18.0 is just in its own directory.
4.When you say 4.18.0 is empty do you mean there are no snippets being displayed at all? yes 5.I'm assuming you had your own snippets stored in 4.15.1. Is that correct? Yes lots of them
Thx for the reply.
My v4.16.0 standard has "CodeSnip 4" as the main window title, while the portable one says "CodeSnip 4 (Portable Edition)". Can't see any reason why 4.15.1 doesn't too. If what I suggest below doesn't work, please go and have a look at the title.
If you install a new standard edition over an older standard edition it should pick up the database automatically. Also installing a new portable edition over an earlier one, in the same directory, should also bring forward the user snippets. The problem comes in installing a portable edition alongside the standard edition. Standard edition stores data in %APPDATA%
(by default) but, by definition a portable program can't do that because the data must be stored with the program so you can move it around.
This leads me to assume your 4.15.1 is standard edition. If that's the case we can fix this.
What follows will delete any snippets you may have created in 4.18.0 portable. If you have done this and want to keep them you should stop now and get back to me. Your existing snippets in 4.15.1 are not at risk.
AppData
and UserData
delete them and all their content.AppData
and UserData
. You snippets should be stored in the AppData/UserDB
directory. Finally, if you want to bring forward your settings from 4.15.1 the following might work.
%appdata%\DelphiDabbler\CodeSnip.4
and press enter. You should now be in the CodeSnip.4
directory.User.config
(and any file named Favourites
) from CodeSnip.4
and paste them into the AppData
directory where you installed 4.18.0 portable. If User.config
or Favourites
already exist then overwrite them.User.config
from AppData
in a text editor. You will see an INI format file.[IniFile]
and change the value of the Version
key to 16
and the value of ProgramVersion
key to 4.18.0
. If the [IniFile]
section does not exist then create it and enter the keys and values manually.User.config
I can't guarantee the setting changes will work - there are quite a lot of difference between the settings of the standard and portable applications. If anything seems screwed up just close 4.18.0 then delete User.config
and restart 4.18.0. It will appear with its default settings and I'm afraid you will need to configure it manually.
One more thought. The standard and portable editions don't know about each others snippets by design.
If your 4.15.1 install is the standard edition then you'd be better off installing the standard edition of 4.18.0 rather than the portable one. Your snippets should still be there.
Warning: like with any other software update it's safer to back up your snippets first like I described above
Thanks
Added new FAQ re this issue in the Using CodeSnip FAQ
I use ver 14.15.1 for years. I downloaded 4.18.0 Portable it is empty. how do I transfer the old DataBase from old to new Also if I download to new will it erase the old?