--Load / plugins / tiddlywiki.info

90 views
Skip to first unread message

James Anderson

unread,
Mar 28, 2021, 5:08:45 PM3/28/21
to TiddlyWiki
Hello,

I have a TW called notes.hta that contains the following plugins:

"welford/twstaticblog/helper",
"welford/twstaticblog/export",
"welford/twyt",
"welford/twspimg"

however when I call this

```
call tiddlywiki .\tw --load .\notes.hta --output .\blog --build posts
```

I am getting the error messages:

```
Warning: Cannot find plugin 'welford/twstaticblog/helper'
Warning: Cannot find plugin 'welford/twstaticblog/export'
Warning: Cannot find plugin 'welford/twyt'
Warning: Cannot find plugin 'welford/twspimg'
```

Presumably getting these because I have these plugins listed in my tiddlwyiki.info

Maybe I am just misremembering, but i thought having the plugins in the file you load is ok. Is that not the case?  do they need to be in the Node.js instance of TW? Is there any way around this?

Thanks,
James

Joshua Fontany

unread,
Mar 28, 2021, 6:39:44 PM3/28/21
to TiddlyWiki
If those plugins exist in the single-file TW instance that you are Loading, then yes - In fact, I don't think you even need a tiddlywiki.info file at all, Unless you are unpacking that wiki into a foler-style / individial *.tid(s).

Timing wise, you are getting the `Warning: Cannot find plugin ` errors AS the TW core is loading your wiki-folder, therefore BEFORE the command is initiated.

Once the single-file tiddlers are loaded, those plugins should appear in the normal `tiddlers/` directory.

Best,
Joshua Fontany

Jeremy Ruston

unread,
Mar 29, 2021, 4:01:39 AM3/29/21
to tiddl...@googlegroups.com
Hi James

Maybe I am just misremembering, but i thought having the plugins in the file you load is ok. Is that not the case?  do they need to be in the Node.js instance of TW? Is there any way around this?

TiddlyWiki under Node.js will only load plugins on the server that are either listed in the tiddlywiki.info file, or are in the "plugins" folder of the wiki folder.

So, it sounds like a better workflow might be to use two separate TW runs: one to use the "savewikifolder" command to save your HTA wiki as a proper wiki folder (complete with the plugins), and then a second one to boot that wiki folder and run your blog commands.

Best wishes

Jeremy



Thanks,
James

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/84c4c1eb-ca9b-46fa-9937-2d8adfbcc158n%40googlegroups.com.

James Anderson

unread,
Apr 4, 2021, 3:55:40 PM4/4/21
to TiddlyWiki
Thanks Joshua and Jeremy.

Ended up going with what Jeremy suggested:

"""
tiddlywiki --load .\notes.hta --savewikifolder .\temp\blog
"""

then

"""
tiddlywiki  .\temp\blog --output .\blog --build css
tiddlywiki  .\temp\blog --output .\blog --build index
tiddlywiki  .\temp\blog --output .\blog --build framework
...
"""

I keep a separate TiddlyWiki folder that overrides a few things I want when exporting  (palette and theme changes) and copy it over the exported Tiddlywiki.

Thanks again,

James

Reply all
Reply to author
Forward
0 new messages