I’ve encountered a problem with the LeftBar plugin (v2.1.4). It happens on a brand new empty server edition on node.js (linux arm64, run through docker) where:
- I create a $:/config/FileSystemPaths tiddler whose sole content is [!is[system]slugify[]] (not interesting but deliberately very reduced)
- I then quit the server and import my plugin with
tiddlywiki mywiki
--load plugin.json
Now’ I start again the server. This sandwich icon of LeftBar is or the upper left corner.
Then I click on that sandwich icon for LeftBar and the server crashes. See below:
=====
syncer-server-filesystem: Dispatching 'save' task: $:/plugins/TWaddle/LeftBar/temp
node:internal/fs/utils:879
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFile (node:fs:2106:5)
at Object.exports.saveTiddlerToFile ($:/core/modules/utils/filesystem.js:414:6)
at $:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:85:13
at FileSystemAdaptor.getTiddlerFileInfo ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:72:2)
at FileSystemAdaptor.saveTiddler ($:/plugins/tiddlywiki/filesystem/filesystemadaptor.js:81:7)
at SaveTiddlerTask.run ($:/core/modules/syncer.js:597:27)
at Syncer.processTaskQueue ($:/core/modules/syncer.js:503:9)
at Function.<anonymous> ($:/core/modules/syncer.js:90:9)
at $tw.Wiki.exports.dispatchEvent ($:/core/modules/wiki.js:133:13)
at $:/core/modules/wiki.js:166:10 {
code: 'ERR_INVALID_ARG_TYPE'
}
=====
I suppose my plugin is not correctly installed. So I was about to do it the proper way with tiddlywiki --build index and after having set the TIDDLYWIKI_PLUGIN_PATH environment variable. But there is a problem: I don’t know how to get all the individual tiddlers of the plugin. The plugin shows its shadow tiddlers, which I can export. But what for the core of the plugin, actual code? I have not been able to get any source code repository for LeftBar.
My questions:
- is my diagnostic of the crash correct (bad installation of the plugin)?
- how could I get all of the files of a plugin given its json file?
Thank you for your help!