[TW5] Help with Tinka Plugin requested

77 views
Skip to first unread message

mauloop

unread,
Oct 15, 2018, 6:29:00 PM10/15/18
to TiddlyWiki
I've done some work I would like to pack as a plugin. I tried with Tinka. The packing steps work fine, but after having the wiki relodead and the single tiddlers of the plugin substituted by the plugin itself, the macro that should run everything returns a "recursive transclusion error".

It worked correctly before I packed the tiddlers into the plugin. Is there anyone that could help me to understand where I was wrong?

The wiki I'm working on is here: https://mauloop.github.io/tw5-table-tool/
The tiddlers building the plugin are all those tagged TableToolPlugin.

Thanks in advance,

)+(

TonyM

unread,
Oct 16, 2018, 2:32:19 AM10/16/18
to TiddlyWiki
I will see if I can help by suggesting some strategies (if you have not tried them)

  • Have you tried bringing your plugin into an empty to see if it is tripping over the tiddlers you used to create the plugin?
  • Can you exclude parts of the solution even if it does not work properly, to see where the error is triggered? You can use overwitten shadow tiddlers for this.
    • Perhaps replace a complex macro with a simple output such as macro and parameter values
  • Can you look at your design as a tree and selectively disable branches
  • Can you divide the code into two, and See which side of the divide the problem lies?, then do the same with what remains
Best of luck

mauloop

unread,
Oct 16, 2018, 4:03:36 AM10/16/18
to TiddlyWiki
Hi Tony,

Thanks for your suggestion. I will try that way.

Regards, )+(

mauloop

unread,
Oct 16, 2018, 4:53:07 PM10/16/18
to TiddlyWiki
I just solved the "Recursive transclusion error" returned by my macro after it has been packed in a plugin. Thanks a lot to TonyM. You're suggestions forced me to keep digging further, while I was giving up.


The fact was that I initialize my environment with:

<$importvariables filter="[tag[$:/tags/tblMacro]]">

which results in an empty list if the tiddler tagged "$:/tags/tblMacro" are shadow tiddlers. Simply changing the filter to:

<$importvariables filter="[all[shadows+tiddlers]tag[$:/tags/tblMacro]!has[draft.of]]">

Clearly the solving part is "all[shadows+tiddlers]". I added the "!has[draft.of]" part to prevent me to be here tomorrow posting for help request again ;^)))

Regards,

)+(
Reply all
Reply to author
Forward
0 new messages