Page 1 of 1

Macros, Cut & Paste, TextPad 8.3.0 x64, Windows 10 1909

Posted: Thu Apr 16, 2020 2:45 pm
by Kryptryx
I have encountered a problem using macros which include a cut and paste.

The problem appears to be some form of race condition between the cut and the paste.

This is with TextPad 8.3.0, x64, and Windows 10 1909. It was happening on at least TextPad 8.2 also.

I found another forum post which may have the same issue, and that is with TextPad 4.7.3.

https://www.textpad.com/forums/viewtopic.php?t=13211

And, as suggested in that post, if I add some delaying no-op commands (like 50 move-left move-right combos), the frequency of occurrence is reduced.

When the error does happen, TextPad emits a 'Beep', and the paste buffer is cleared.

A reliable way to reproduce. Create a file with say 100 identical lines. Create a macro which moves some text within a line using cut and paste. And then execute the macro for each line, either manually or with multi-line. More often than not, there will be a 'beep' sometime during the execution, and a line will not be edited correctly. This will also be apparent because all the lines started as identical.

Posted: Thu Apr 16, 2020 3:35 pm
by ben_josephs
I can reproduce this. And TextPad crashed. I've sent the dump file to Helios.

Posted: Sun Apr 19, 2020 12:02 pm
by Kryptryx
Issue still exists in 8.4

I have found a 'better' workaround. If as a no-op, I do an insert and then delete some characters, the failure occurs much less often. But it still occurs.

So I do frequent saves, and revert after the failure, and redo.

Posted: Sun Jun 07, 2020 10:48 pm
by Kryptryx
This appears to be fixed with 8.4.1.

Thanks for the support.

Posted: Mon Jun 08, 2020 11:28 am
by AmigoJack
https://textpad.com/support/relnotes.html#v841 announced this as
Macros which did a lot of copying and pasting could be interrupted, because the clipboard could not service the requests quickly enough.

Posted: Mon Jun 08, 2020 1:43 pm
by Kryptryx
Thank you @AmigoJack. I did notice that, and that is what prompted me to download and test.

Is there a mechanism to get a notification when a new version is released?

Posted: Mon Jun 08, 2020 2:18 pm
by AmigoJack
No, the board software is too old to offer a feature to see new topics in https://forums.textpad.com/viewforum.php?f=4 and the website in general has no newsletter either. I also only discover new versions by chance, but then again I never had a huge bug bothering me...