Newby plugin dev request: Why my plugin is not recognized (dev in Browser) ?

52 views
Skip to first unread message

Profess Vpl

unread,
Jul 30, 2017, 6:48:34 AM7/30/17
to TiddlyWikiDev
Hi,

Newby in the dev of plugin I'm using the method "in browser" as descrived in the Tiddly Dev guide (http://tiddlywiki.com/dev/)

I've first tested a macro in javascript that works properly
Then I've tried to create a plugin with this macro

Following the instruction on the Dev guide I've created the following tiddler
- $:/plugins/vpl/progresstest   and
- $:/plugins/vpl/progresstest/bartest.js
(bartest.js containing my macro code that I've tested on another tiddywiki)

On Chrome I've successfully run the following command. 
$tw.utils.repackPlugin('$:/plugins/vpl/progresstest', ['$:/plugins/vpl/progresstest/bartest.js'])

My $:/plugins/vpl/progresstest tiddler was filled with the bartest.js tiddler.
bartest.js tiddler disappeared (is that normal ?)

I've saved and reloaded
The plugin tiddler version field was incremented.

Then I've tried to run the macro <<bartest 30 42 80>> as I was running it when I tested it outside of a plugin, on another tiddywiki
Unfortunately the marco is not recognized ...

What surprising me is that I can't find my $:/plugins/vpl/progresstest in the shadows tiddlers list

But my plugin seems nevertheless recognized as I see it from the  

$:/ControlPanel plugins


Any help would be very useful ...


THanks a lot for your great work 


Regards


Vpl


BJ

unread,
Sep 13, 2017, 11:30:01 AM9/13/17
to TiddlyWikiDev
sorry that no one has replied earlier.

The contents of plugins are 'unpacked' as shadow tiddlers but the plugin itself is a normal tiddler

you might want to do a search for the tinka plugin in the main tiddlywiki forum, a lot of people use this to develop plugins in the  browser (I use nodejs mostly).

all the best
Reply all
Reply to author
Forward
0 new messages