Snippets install gives "unable to find the database"
New to npp, just installed snippets plugin. When i run it I get the database error message and when I exit npp I get another error saying “Filename not set”. I’ve gone to the home page for the plugin and it says “NppSnippets.sqlite to the plugins/Config directory in your AppData” but of course, that file does not exist in the download. WTF. How do I install this plugin?
Solved it myself! I found this video on Youtube that got it to work:
I didn’t uninstall my 64 bit system as he suggests, I just copied the downloaded folder and file into my Program Files\Notepad++\Plugins folder and now it works!
PluginManager could do it for you. The installation commands there:
Download https://github.com/ffes/nppsnippets/releases/download/v1.4.0/NppSnippets-140-x32.zip MD5: bc30a2ff3af968e66cf7e192cd5b7bb1 Copy from: NppSnippets.dll To: $PLUGINDIR$\ Validate Directory Copy from: NppSnippets\SQL\*.sql To: $PLUGINDIR$\NppSnippets\SQL Directory Copy from: NppSnippets\*.html To: $PLUGINDIR$\NppSnippets Directory Copy from: NppSnippets\*.pdf To: $PLUGINDIR$\NppSnippets Directory Copy from: NppSnippets\*.sqlite To: $PLUGINDIR$\NppSnippets Directory
On YouTube you can find a lot of videos showing how to install this plugin manually. The problem is that the copy commands provided in PluginManager’s XML file are buggy.
In the downloaded file there is no folder
NppSnippets\SQL. Instead the SQL files are located in
NppSnippetsdirectly. The absence of these files after plugin’s installation causes it to fail.
Also the copy commands for the *.html and *.pdf files are superfluous, the downloaded ZIP doesn’t contain files of these types.
@dinkumoil Thanks for the hint. Indeed the copy operations are just matching to snippets 1.3 and were not adapted to the changes with 1.4.
I corrected that for the 32bit and 64bit versions PM plugin devlist right now.