Is this a bug? Uncompleted $list statement

59 views
Skip to first unread message

Mohammad Rahmani

unread,
Apr 25, 2021, 11:42:21 PM4/25/21
to tiddl...@googlegroups.com
I was working in and my preview pan was open and this was the code


<$list


```
<$list filter="[tag[Filter Operators]]">

</$list>
```


It returns long result while I have not set the filter yet! and I have the following statements inside code block ```



Best wishes
Mohammad

Charlie Veniot

unread,
Apr 25, 2021, 11:52:43 PM4/25/21
to TiddlyWiki
Yeah, I've run into that a few times.  Both while in the midst of coding a filter operation, or monkeying around with "<!--" and "-->" (i.e. adding comments in the wiki text.)

I try to avoid using the preview pane when I'm planning on coding/updating filter operations.

I'm thinking that the preview pane pretty much updates on every keystroke.   So filter operation happens over and over again on every keystroke for every character difference made to the filter.

I don't know if that qualifies as a bug, or just something we need to watch out for.  Regardless, I'm thinking it would be messy to change the behaviour of the preview pane.

Mohammad Rahmani

unread,
Apr 26, 2021, 12:36:33 AM4/26/21
to tiddl...@googlegroups.com
Thank you Charlie!
So your experience is to keep the preview pane closed as long as you finished coding!


Best wishes
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/680d2906-4ba2-4cce-8f7e-799846ce3661n%40googlegroups.com.

Mark S.

unread,
Apr 26, 2021, 12:54:32 AM4/26/21
to TiddlyWiki
Shows the same thing without the preview!

You can parse it like this

<$list   ---> Start of list widget
         ---> Blank space inside widget. Ignored
```      ---> Some strange characters inside widget. Ignored
<$list   ---> Some strange characters inside widget. Ignored
filter="[tag[Filter Operators]]"  ---> List filter which gets used
>        ---> End of first listwidget tag
         ---> Space triggering list display
</$list> ---> Matching end tag of listwidget
```      ---> Characters which get rendered in blob at bottom of list           

Mohammad Rahmani

unread,
Apr 26, 2021, 2:15:36 AM4/26/21
to tiddl...@googlegroups.com
Thank you Mark!
So this is a default behaviour!




Best wishes
Mohammad


PMario

unread,
Apr 26, 2021, 3:40:15 AM4/26/21
to TiddlyWiki
On Monday, April 26, 2021 at 8:15:36 AM UTC+2 Mohammad wrote:
Thank you Mark!
So this is a default behaviour!

Yes, and it's also, what you told it to do. The algorithm, has no chance to know, that you are not finished with editing yet.

I've run into a similar problem yesterday, that caused an endless loop.
In normal cases I just close the preview.

But the first time ever, I needed to "kill" the browser tab. Which resulted in data loss of some changes.

The good thing was, that reloading fixed the problem, since the erroneous code wasn't saved.
So I was lucky!

-mario

Álvaro

unread,
Apr 26, 2021, 8:18:52 AM4/26/21
to TiddlyWiki
Hi Charlie

I think we have the same issue ( https://github.com/Jermolene/TiddlyWiki5/issues/5396 ). Jeremy have fixed it for the prerelease version. You can fixed it in your wikis (5.1.23), I did it and my wikis work fine now.

Charlie Veniot

unread,
Apr 26, 2021, 9:22:09 AM4/26/21
to TiddlyWiki
Well, I'd like to think I'm really good at "once bitten twice shy", but not so much.  

So because I quickly forget, my preview pane tends to always open.  Which leaves me wide open for repeated drop-kicks through the goalposts of life.

The neat thing about it, though, is this: I probably only run into the problem (TiddlyWiki locking up in some infinite loop, or painfully long loop) only once in a while.

I have gotten into the practice of listening to my spidey sense:  Okay, I may be about to pull a real Darwinesque move here, so I am going to create a copy of this tiddler, save my TiddlyWiki, and then proceed with the possibly very bad idea.

How I've managed to get through life without sticking my tongue on a frozen metal pole is a mystery...

PMario

unread,
Apr 26, 2021, 9:37:03 AM4/26/21
to TiddlyWiki
On Monday, April 26, 2021 at 3:22:09 PM UTC+2 cj.v...@gmail.com wrote:

I have gotten into the practice of listening to my spidey sense:  Okay, I may be about to pull a real Darwinesque move here, so I am going to create a copy of this tiddler, save my TiddlyWiki, and then proceed with the possibly very bad idea.

Yea, from time to time that's my workflow too.
 
How I've managed to get through life without sticking my tongue on a frozen metal pole is a mystery...

hihi ... I only can say: Don't strike a match with your teeth ;) ...

-m

Reply all
Reply to author
Forward
0 new messages