Let's set the bases:
- node 10.3.0, tiddlywiki 5.1.17
- I'm talking about tiddlywiki with node.js and hence about WikiFolders wiki's.
- Even if I use forward slashes in some description I'm working on windows so real fs paths use backslashes, but I hope it doesn't make difference.
- I tried to run tiddlywiki both directly with node.js and with TiddlyServer but it doesn't make difference.
- after a manual change of wiki fs contents, tiddlywiki is always restarted.
I setup a wiki with this structure:
plugins (same level as wf)
wf (that in a creative flare stands for wiki folder :)
wf/pluginswf/tiddlerswf/_system/config/FileSystemPaths.tid (
[is[system]removeprefix[$:/]addprefix[_system/]])
wf/tiddlywiki.info (the one from
Jermolene/TiddlyWiki5/editions/server/tiddlywiki.info)
Then i took
Jermolene/TiddlyWiki5SamplePlugin/SamplePluginWiki and i proudly renamed it into
$:/plugins/gg/sample-plugin building it in a directory structure equal to the plugin name
plugins/gg/sample-pluginwith the following
plugin.info{
"title": "$:/plugins/gg/sample-plugin",
"description": "Reverse macro plugin",
"author": "me",
"version": "0.0.1",
"core-version": ">=5.0.0",
"source": "",
"plugin-type": "plugin",
"list": "readme license history"
}
Now all that I want to do is to deploy that plugin into the wiki.
I was not able from the doc to understand what's the correct way to do it. I was expecting that, packed or unpacked, the handling of plugins would be symmetrical, but after a number of attempts I'm, well, let's say, a bit perplexed about the seemingly schizophrenic behavior of plugin mechanism handling of packed and unpacked plugins.
1- drag and drop the plugin on the browser. The plugin is deployed packed as "
wf/tiddlers/_system/plugins/gg/sample-plugin.tid" and is listed as regular plugin.
2- copy
gg/sample-plugin unpacked into
wf/tiddlers/_system/plugins.
The tiddlers are loaded but it is not identified as plugin.
2a- copy
gg/sample-plugin.tid packed into
wf/tiddlers/_system/plugins.
The plugin is deployed and is listed as regular plugin. (same as case 1)
3- copy sample-plugin
unpacked into
wf/tiddlers/_system/plugins.
The tiddlers are loaded with the correct prefix ($:/plugins/gg/sample-plugin) but it is not identified as plugin.
3a- copy sample-plugin.tid
packed into
wf/tiddlers/_system/plugins.
The plugin is deployed and is listed as regular plugin.
4- copy
gg/sample-plugin unpacked into
wf/plugins. "Warning: missing
plugin.info file in C:\home\web\TiddlyWiki\wf\plugins\gg" at tiddlywiki boot. Plugin is ignored, tiddlers are not loaded.
4a- copy
gg/sample-plugin.tid packed into
wf/plugins. "Warning: missing
plugin.info file in C:\home\web\TiddlyWiki\wf\plugins\gg" at tiddlywiki boot. Plugin is ignored, tiddlers are not loaded.
5- copy
sample-plugin unpacked into
wf/plugins.
The plugin is deployed and is listed as regular plugin, but I lost the directory structure (plugins/publisher/name).
5a- copy
sample-plugin.tid packed into
wf/plugins.
Plugin is ignored, tiddlers are not loaded.
6- copy
gg/sample-plugin unpacked into
wf/plugins, adding
"gg/sample-plugin" to the plugins list into
wf/tiddlywiki.info.
The plugin is deployed and is listed as regular plugin, but I still get "Warning: missing
plugin.info file in C:\home\web\TiddlyWiki\wf\plugins\gg" at tiddlywiki boot.
6a- copy
gg/sample-plugin.tid packed into
wf/plugins, adding
"gg/sample-plugin" to the plugins list into
wf/tiddlywiki.info.
Plugin is ignored, tiddlers are not loaded. "Warning: missing
plugin.info file in C:\home\web\TiddlyWiki\wf\plugins\gg" at tiddlywiki boot.
7- copy
gg/sample-plugin unpacked into "
plugins", adding "
set TIDDLYWIKI_PLUGIN_PATH=..\plugins" to the tiddlywiki start script. Plugin is ignored, tiddlers are not loaded.
7a- copy
gg/sample-plugin.tid packed into "
plugins", adding "
set TIDDLYWIKI_PLUGIN_PATH=..\plugins" to the tiddlywiki start script. Plugin is ignored, tiddlers are not loaded.
8- copy
gg/sample-plugin unpacked into "
plugins", adding "
set TIDDLYWIKI_PLUGIN_PATH=..\plugins" to the tiddlywiki start script and
"gg/sample-plugin" to the plugins list into
wf/tiddlywiki.info.
The plugin is deployed and is listed as regular plugin.
8a- copy
gg/sample-plugin.tid packed into "
plugins", adding "
set TIDDLYWIKI_PLUGIN_PATH=..\plugins" to the tiddlywiki start script and
"gg/sample-plugin" to the plugins list into
wf/tiddlywiki.info.
Plugin is ignored, tiddlers are not loaded.
Please can someone tell me if this is expected behavior and what is the correct method to deploy packed and unpacked plugins?
Thanks, Gabriele