[tw5] Re: Another set of eyes on my code

2021-07-28 Thread PMario
Hi, These widgets may help debugging. https://tiddlywiki.com/#LogWidget:LogWidget%20ActionLogWidget -m On Wednesday, July 28, 2021 at 12:08:35 AM UTC+2 TW Tones wrote: > Mark, > > Thanks, when I separate the code it also works. Just knowing your success > is important information. My suspicion

[tw5] Re: Another set of eyes on my code

2021-07-27 Thread TW Tones
Mark, Thanks, when I separate the code it also works. Just knowing your success is important information. My suspicion is perhaps that one of the variables I make use of is misbehaving and causing the code to be misread. I am loath to wikify every variable just before use but I may need to do

[tw5] Re: Another set of eyes on my code

2021-07-27 Thread 'Mark S.' via TiddlyWiki
The thing is, I do see the second buttons after running the first button. So maybe I don't understand what you expect the code to do. I do change " {{$:/PSaT/fancy-fields/icons/edit-field}}" to "MY BUTTON" because I don't want to go spelunking all over the TW world to find the particular icon

[tw5] Re: Another set of eyes on my code

2021-07-27 Thread Charlie Veniot
The copy/paste deal that introduced a hidden character, backspacing fixing the problem: it was code copied and pasted within my own tiddlers: from tiddler "A Backup" to tiddler "A". Just saying, no harm in quick-sanity-check backspacing a line to the previous one and slapping in a fresh

[tw5] Re: Another set of eyes on my code

2021-07-27 Thread TW Tones
Thanks all, Mario, I would share an example, but it is hard to extract a test case because as I said "Deep within a larger project", I will see what I can do if I get nowhere soon. - Although when I extracted these macros from the others in an attempt it started working. Charlie, I

[tw5] Re: Another set of eyes on my code

2021-07-26 Thread 'Mark S.' via TiddlyWiki
Unless something has changed in the rules of TW, you can't insert the contents of a widget in the middle of a widget this way: <$action-setfield $tiddler=<> $field=<> $value=<$transclude tiddler=<>/> /> This does seem like a possible copy/paste error per cj's suggestion. On Monday, July 26,

[tw5] Re: Another set of eyes on my code

2021-07-26 Thread Charlie Veniot
Silly thought: any chance you were doing some copy/pasting in the whereabouts of that button or the macros above ? Just a couple of times, I've had situations in which it felt like I had hidden characters either at the end of a line or the beginning of the next line. Strange problems fixed by

[tw5] Re: Another set of eyes on my code

2021-07-26 Thread PMario
Hi Tony, I would have a look at it, if you'd provide a json with 2 or 3 tiddlers in it that I can import at tiddlywiki.com, which show the problem. Just with this code and the description, that I don't understand 100% it's hard to see a problem. I'm not in the mood to create a testcase, that I