Hi Thomas
> I just tried to look into
> $:/plugins/tiddlywiki/qrcode/ViewToolbarButton/Rendered
> <http://tiddlywiki.com/prerelease/#%24%3A%2Fplugins%2Ftiddlywiki%2Fqrcode%2FViewToolbarButton%2FRendered>
> first from the plugin (contents tab) then from the advanced search (Shadows
> tab).
>
> All my preferred browsers throw JS errors at me (Safari, FF, Chrome on Mac).
There are, sadly, a bunch of shadow tiddlers in the core that are not safe to
view directly; they are templates designed to be used in specific
circumstances, and they run into problems when viewed in the context of the
story river.
I think the best solution would have been to have arranged things so that
system tiddlers are always shown as raw text, rather than rendered text. It’s
too late to change things now for all shadow tiddlers, but I have experimented
with a patch that displays raw text for all system tiddlers that have more than
one forward slash in their titles, allowing $:/ControlPanel etc to be displayed
as usual.
I think at the moment our only other recourse is to fix each individual
template. The example you’ve mentioned has the following content:
\define image()
<img src=<<makeqr text:"""$(content)$""" size:"350">>/>
\end
<$wikify name="content" text={{!!text}} type="text" mode="block"
output="formattedtext">
<<image>>
</$wikify>
The problem occurs because when you view this tiddler in the story river, the
current tiddler will be the tiddler itself (rather than a target tiddler for
which we are generating a QR code), thus triggering the recursion.
In this case, we could fix things with a protective reveal widget that detects
that the tiddler is being viewed in the story river, and suppresses the main
content. The trouble is that all of that extra mechanism will impact
performance, adding an overhead to every template in the system.
Best wishes
Jeremy
>
> Uncaught RangeError: Maximum call stack size exceeded
>
> Skript: http://tiddlywiki.com/prerelease/ line 25874 > eval:137 (FF)
>
> Is this due to an error or to the many browser tabs I have in all of my
> browsers?
>
> Kind regards,
> Thomas
>
> PS: Writing this I wondered about case differences in contents / Shadows
> (first letter uppercase) is there a logic I am not aware of?
>
> --
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/b31465fd-5e6f-422d-9e5f-fa8035fabfed%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/b31465fd-5e6f-422d-9e5f-fa8035fabfed%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/EEC7B56B-8572-4CD7-BD15-68D28D7C8776%40gmail.com.
For more options, visit https://groups.google.com/d/optout.