macro buttons getting repeat endings in code (in Bob?)

93 views
Skip to first unread message

Dave

unread,
May 23, 2019, 6:59:37 PM5/23/19
to TiddlyWiki
Not sure if this is a Bob thing or not, but I keep getting additions of code to a lot of my macro buttons.  Here's an example:

\define bef()
<$edit-text tiddler="$(currentTiddler)$.notes" class="tw-edit-texteditor myBigNote" tag="textarea" default=""/>
\end"tw-edit-texteditor myBigNote" tag="textarea" default=""/>
\end

its supposed to end at the first "\end", but somewhere in the works the tail end of the tiddler gets doubled.

I've only noticed it on macros, but that may be because its super obvious where the macro button is actually rendered that something's wrong.

- Dave


P.S. its not happening a lot, just noticing maybe 1 or 2 a week.

TonyM

unread,
May 23, 2019, 9:13:19 PM5/23/19
to TiddlyWiki
Dave,

The example you give is not clearly a button!

Are you simply typing your macro in, or using a custom editorTool Bar button or something? This append then occurs after you save?

If you can find out how to make it occur repeatedly try disabling you plugins on at a time until it not longer occurs to identify the possible cause.

Also check for system tiddlers that have being overridden for a possible error. 

If this is occurring systematically understanding how it happens could be an opportunity for innovations.

Regards
Tony

Dave

unread,
May 23, 2019, 10:18:14 PM5/23/19
to TiddlyWiki


The example you give is not clearly a button!

Oops, you're right - I had intended to post about this earlier and that example was a button code...  Most if the time its showing up at buttons I use fairly frequently

 
Are you simply typing your macro in, or using a custom editorTool Bar button or something? This append then occurs after you save?
no, just normal saving.  It never happens on screen, always after I go away and come back later
 

If you can find out how to make it occur repeatedly try disabling you plugins on at a time until it not longer occurs to identify the possible cause.

Also check for system tiddlers that have being overridden for a possible error. 

If this is occurring systematically understanding how it happens could be an opportunity for innovations.

 yes, I'll keep an eye out for those things.  Just thought maybe someone might recognise this problem as its fairly unique (seems to me anyway)

TonyM

unread,
May 24, 2019, 3:13:25 AM5/24/19
to TiddlyWiki
Dave,

In my own experience it is unique. That is why I have called for you to provide more information.

One more thing to consider, had you copied and pasted the additional text recently, or was it in the clipboard?

The reason I ask is I have had somewhat similar problems, which was ultimately due to a "stuck" key on my keyboard. In which case turn the keyboard upside down on your lap and try a drum solo on it (don't scare your neighbors). You will be surprised what falls out.

Regards
Tony

Dave

unread,
May 24, 2019, 5:57:00 PM5/24/19
to TiddlyWiki
Hi, thank you.  For sure its not a stuck key or clipboard thing.  It seems to happen in the background.  For example I found one today that it had happened to twice:

<<version>>ersion>>ersion>>


(that was the sole content of the tiddler, obviously a "Version" tiddler)

I'll keep looking into it and if I figure out anything I'll post back in case anyone else has this in the future.  (At least its adding info rather than taking away, ha ha)

Jed Carty

unread,
May 25, 2019, 4:23:43 AM5/25/19
to TiddlyWiki
If it is a bug in how Bob saves things but I can't find any way it could happen. Bob sends the full tiddler text to the server to be saved so it saves all of a tiddler or nothing, it shouldn't ever try and save only part of a tiddler, or append things onto the end of a tiddler like that.

I don't know of anywhere in the tiddlywiki core that this could happen either.

Do you have the tiddlers synced with something like dropbox or have two bob processes trying to access the same wiki? I am not sure how dropbox syncing works but having multiple processes trying to modify the contents at the same time could result is unexpected behaviour.

Dave

unread,
May 27, 2019, 1:23:30 PM5/27/19
to TiddlyWiki
Yes, I totally understand I'm pushing the envelope - I'm using syncthing to keep tiddlers sync'd between home pc, work pc and phone.  I also keep forgetting to turn off my home pc bob, so I'm going to try to write a bash script that automatically kills the one I'm not using and hopefully that will fix the problem.  One day when I have the time to figure it out I'll try to get the secure server version of 
Bob running and then I shouldn't have those problems.

On that subject you know what would be cool? A secure server version of Bob as a Snap Package :) !!!!

Jed Carty

unread,
Jun 2, 2019, 4:11:41 AM6/2/19
to TiddlyWiki
Yes, a packaged version of the server is on the list of way too many projects I have, along with a hosting service for it and proper syncing between servers so that the problems you are running into can be easily avoided.

I will have time for that eventually.
Reply all
Reply to author
Forward
0 new messages