[twdev] Re: Plugin works only in the example wiki

2018-08-29 Thread bimlas
Thanks for help! I just solved the problem, the plugin is working on both 
Node and single page 
versions: https://groups.google.com/d/msg/tiddlywiki/PvoDxAWgziE/A0Ys8vWHAwAJ

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/8efee867-9856-4d97-aaa7-3d5db407d06d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-29 Thread BJ
note that tiddlywiki is not like other node apps. When using tiddlywiki on 
node, usually this means to be running a server instance of tiddlywiki in 
node which is serving a client instant of tiddlywiki in the browser. The 
client is very similar to the standalone version of tiddlywiki. Does you 
parser need to work in the server and client instances of tiddlywiki?

note also that when  tiddlywiki starts it creates its own version of the 
'require' functionally. 

On Wednesday, August 29, 2018 at 8:33:29 AM UTC+2, bimlas wrote:
>
> Found the root of the problem: Asciidoctor.js does not works without 
> dependencies on Node. For details, see 
> https://github.com/asciidoctor/asciidoctor.js/issues/539
>

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/830c6d63-fb4f-400c-ae20-c1d6ca21d021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-29 Thread bimlas
Found the root of the problem: Asciidoctor.js does not works without 
dependencies on Node. For details, 
see https://github.com/asciidoctor/asciidoctor.js/issues/539

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/e56cffbc-be14-4569-8ddd-82c6bcc5dfee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
Just tried out to install Markdown plugin, it shows the same warning 
message on terminal:

For $:/plugins/tiddlywiki/markdown, type is application/json hasMetaFile is 
false filepath is /home/nyolcas/src/tiddly-test/tiddlers/
$__plugins_tiddlywiki_markdown.tid

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7ad4e7e6-7bd7-4f65-8b24-a5e4981b25b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
This is how I bundling the plugin (if this helps):

https://gitlab.com/bimlas/tw5-asciidoctor/blob/6c74c727e26b5211d3cfc4c0fd720c99d119212f/.gitlab-ci.yml

The tiddlers of the wiki (eg. Example) are on `gl-pages` branch, this is 
why I checking out it.

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/7a5fab26-eeaf-44f8-b574-ef1a72cac3b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
Maybe I found something - I looked at the wrong place for logs: the 
terminal contains warning messages besides the developer console:

┌─[23:27] ~/src/tiddly-test
└─ $ tiddlywiki --init server
Copied edition 'server' to /home/nyolcas/src/tiddly-test


┌─[23:27] ~/src/tiddly-test
└─ $ tiddlywiki --server 
Serving on 127.0.0.1:8080
(press ctrl-C to exit)
 syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
For $:/StoryList, type is application/x-tiddler hasMetaFile is false 
filepath is /home/nyolcas/src/tiddly-test/tiddlers/$__StoryList.tid
 filesystem: Saved file /home/nyolcas/src/tiddly-test/tiddlers/$__StoryList.tid 

 syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
 filesystem: Saved file /home/nyolcas/src/tiddly-test/tiddlers/$__StoryList.tid 

 syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
 filesystem: Saved file /home/nyolcas/src/tiddly-test/tiddlers/$__StoryList.tid 


 # THIS IS WHERE I DROPPED THE PLUGIN IN TO THE WIKI

 syncer-server-filesystem: Dispatching 'save' task: 
$:/plugins/bimlas/asciidoctor 

For $:/plugins/bimlas/asciidoctor, type is application/json hasMetaFile is 
false filepath is /home/nyolcas/src/tiddly-test/tiddlers/
$__plugins_bimlas_asciidoctor.tid
 filesystem: Saved file /home/nyolcas/src/tiddly-test/tiddlers/
$__plugins_bimlas_asciidoctor.tid 

The interesting part is this:

For $:/plugins/bimlas/asciidoctor, type is application/json hasMetaFile is 
false filepath is /home/nyolcas/src/tiddly-test/tiddlers/
$__plugins_bimlas_asciidoctor.tid

... but a similar message was shown above (with plain, newly created wiki):

For $:/StoryList, type is application/x-tiddler hasMetaFile is false 
filepath is /home/nyolcas/src/tiddly-test/tiddlers/$__StoryList.tid

Thus I don't think that this is a real bug - if the plain Tiddly shows the 
same, then it's OK. ... A plain wiki without any tiddlers... Hmm... I have 
to check the filelist...

Nope, the filenames and plugin.info seems to be OK (see the code 
at https://gitlab.com/bimlas/tw5-asciidoctor/tree/master and the tiddlers 
inside the plugin's contents). I compared it to the Markdown plugin 
(https://tiddlywiki.com/plugins/tiddlywiki/markdown/), this is what I 
modified to use Asciidoctor.

I don't know... Maybe it's a bug in Tiddly? What works on single HTML does 
not works on Node?

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b1e4f845-22f7-42b2-b355-f883a8309c30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread BJ
Hi Bimlas,
 I downloaded an empty tw from tiddlywiki.com and then dragged your plugin 
from https://bimlas.gitlab.io/tw5-asciidoctor/ and dropped it in the empty 
tw - it works ok -- in chrome 68 on xubuntu 18.04

cheers

BJ

On Monday, August 27, 2018 at 10:05:48 AM UTC+2, bimlas wrote:
>
> Hi!
>
> I just created a plugin to parse Asciidoctor in TiddlyWiki:
>
> http://bimlas.gitlab.io/tw5-asciidoctor/
>
> It works but only in this wiki - when I trying to install to my own, then 
> it prints the following error after restart:
>
> Internal JavaScript Error 
> Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
> by refreshing your browser 
> Uncaught TypeError: Cannot read property 'call' of undefined
>
>
> Screenshot:  https://i.imgur.com/0EEC32l.png
>
> Somebody can help me to find the problem? The source code of the plugin 
> can be found at https://gitlab.com/bimlas/tw5-asciidoctor
>

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/8a3a81f2-ee33-4a40-b450-1bf82adabde7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
No, it's not finished - the problem still exists, but the source code was 
private.

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3256ba00-f5b8-4e97-aaa9-668740be6380%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Plugin works only in the example wiki

2018-08-27 Thread bimlas
Sorry, just realized that the project was private... (-_-') Now it's 
available to view.

-- 
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 post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/d605d2ff-fbc0-4c0e-90ab-8a3a044c087b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.