Hi Nico

I think you’ve stumbled on a limitation of $tw.utils.repackPlugin(). It’s 
actually quite an old way to build plugins, and now the Tinka plugin is more 
widely used, and may be worth checking out,

https://tinkaplugin.github.io/ <https://tinkaplugin.github.io/>

Best wishes

Jeremy

> On 26 Apr 2020, at 00:53, Nicolas Petton <n...@petton.fr> wrote:
> 
> Hi,
> 
> I've started making a plugin in the browser (without nodejs), and
> everything went fine during the first packing. All the tiddlers included
> in the plugin became shadow tiddlers as expected, and the plugin works
> just fine.
> 
> My issue is that now each time I try to make a change to one of the
> plugin shadow tiddlers and repack the plugin using
> 
>  $tw.utils.repackPlugin("$:/plugins/name/plugin")
> 
> All overrides to shadow tiddlers get reverted back to the version of the
> shadow tiddlers, deleting all changes I'm trying to add to the plugin.
> 
> The doc at
> https://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser
> seems to indicate that it should work though:
> 
>  To make a modified copy of a plugin, one edits the constituent shadow
>  tiddlers (doing this actually overrides the shadow tiddler with a new
>  non-shadow tiddler containing the modified content). The repacking
>  process retrieves the current value of all the shadow tiddlers included
>  in the plugin, and then bundles the new values back into the original
>  plugin tiddler.
> 
> However this is not what I'm experiencing.
> 
> I guess I'm doing something wrong, but at that point I'm a bit stuck :-)
> 
> Thanks,
> Nico
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywikidev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/87pnbvktqm.fsf%40petton.fr.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/2C0DBD6B-6E23-44D6-9E04-21BBE44053B6%40gmail.com.

Reply via email to