Plugin tiddlers non-functional until opened and saved

85 views
Skip to first unread message

admls

unread,
Mar 11, 2019, 9:40:08 PM3/11/19
to TiddlyWiki
Hi Folks,

I came across a really weird problem. I've been developing some plugins on node, and they work fine there. But when I build the release, a few of the tiddlers in the plugin simply don't work until I open them and save them again. I don't make any changes, just open, close. And then they function.

Has anyone seen anything like this before? I'm out of my depth here.

Best wishes,

admls
Message has been deleted

Jeremy Ruston

unread,
Mar 12, 2019, 4:34:43 AM3/12/19
to tiddl...@googlegroups.com
Hi admls

Plugins that include rawmarkup tiddlers do indeed require saving and reloading twice before they work properly. The first save/reload loads the plugin, and the second gives the plugin a chance to write the necessary rawmarkup tiddlers.

Best wishes

Jeremy.

--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f6a10006-cd60-4eb1-8527-7983dc87b401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

admls

unread,
Mar 12, 2019, 5:34:45 AM3/12/19
to TiddlyWiki
Hi Jeremy,
My plugins have some tiddlers of type text/vnd.tiddlywiki and some of type application/javascript. I don't really understand what rawmarkup is. Could you explain a bit more?

Best wishes,
Admls

Jeremy Ruston

unread,
Mar 12, 2019, 5:46:38 AM3/12/19
to tiddl...@googlegroups.com
Hi admls

> My plugins have some tiddlers of type text/vnd.tiddlywiki and some of type application/javascript. I don't really understand what rawmarkup is. Could you explain a bit more?

The rawmarkup mechanism is a means for plugins to insert snippets of code in the main TW HTML file. It is used by some plugins to include external scripts and setup configuration etc.

If you’re not using rawmarkup tiddlers it’s not so obvious what might be going wrong.

When you say “open them and save them again” are you referring to the tiddlers within your plugins? If so, it sounds like some of your filter expressions are only picking up “real” tiddlers, and not shadow tiddlers.

If you want to get all tiddlers tagged “foo” including shadow tiddlers you need a filter like this:

[all[shadows+tiddlers]tag[foo]]

Best wishes

Jeremy

>
> Best wishes,
> Admls
>
> --
> 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 post to this group, send email to tiddl...@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4bbbfc2c-4e5c-498f-ac04-a7a32bac6478%40googlegroups.com.

admls

unread,
Mar 12, 2019, 5:55:38 AM3/12/19
to TiddlyWiki
Brilliant. The filters would never have occurred to me. I'll give that a look in a bit and see if that solves it.

Cheers!

Jeremy Ruston

unread,
Mar 12, 2019, 6:45:18 AM3/12/19
to tiddl...@googlegroups.com
Hi Mohammad

That sounds like the same issue: you’ve got tiddlers in the plugin that are not showing up in some filter somewhere due to the filter being coded to exclude shadow tiddlers.

Best wishes

Jeremy

On 12 Mar 2019, at 04:05, Mohammad <mohammad...@gmail.com> wrote:

Hi admls,
 I have encountered the same problem, For example I had demo tiddler packed into plugin and it used a viewtemplate.
It did not work until I opened and saved it. Example is sticky footer in Shiraz plugin!

I did not fount the reason and hope Jeremy gives his comment on this.

--Mohammad
-- 
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Adam Sherwood

unread,
Mar 12, 2019, 6:46:13 AM3/12/19
to tiddl...@googlegroups.com
Hi Mohammad,

That's really interesting. The place I noticed the phenomenon was in a tiddler being used as a template as well. I'm going to check out the filter issue that Jeremy suggested when I get the chance later. But I suspect that's probably it in my case. It would make sense that the filter would work prior to the plugin being packaged, not work post packaging, and then work again once I open the tiddler and hit the checkmark (effectively overwriting it and making it not a plugin tiddler anymore). I don't know if you used a similar process, but I'm guessing that that probably it in my case.

Best wishes,

admls

On Tue, Mar 12, 2019 at 10:34 AM Mohammad <mohammad...@gmail.com> wrote:
Hi admls,
 I have encountered the same problem, For example I had demo tiddler packed into plugin and it used a viewtemplate.
It did not work until I opened and saved it. Example is sticky footer in Shiraz plugin!

I did not fount the reason and hope Jeremy gives his comment on this.

--Mohammad

On Tuesday, March 12, 2019 at 5:10:08 AM UTC+3:30, admls wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/nmzDZEYxNoI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

admls

unread,
Mar 12, 2019, 9:22:54 AM3/12/19
to TiddlyWiki
Hi Jeremy and Mohammad,

That was the problem. I had one filter that was all[system+tiddlers] instead of all[shadows+tiddlers]. Thanks, Jeremy! It would have taken me days to think of that.

Best wishes,

Admls

Mohammad

unread,
Mar 12, 2019, 4:12:24 PM3/12/19
to TiddlyWiki
Hi Admls, Hi Jeremy
 That was the problem as Jeremy explained. 

Thank you! 

Mohammad

unread,
Mar 12, 2019, 4:12:47 PM3/12/19
to TiddlyWiki
Added to TW-Scripts.
Reply all
Reply to author
Forward
0 new messages