KM8 update - Issues, had to roll back

,

If you are not using the capture group in the replacement, then you can resolve the problem in v8 by adjusting the by using non-capturing brackets: (?:m?).

1 Like

Did you by any change launch Keyboard Maestro 8 and then revert to Keyboard Maestro 7 (or even run Keyboard Maestro 7 briefly). That will loose the Search & Replace action, the new combined action is new in version 8, and the old Search & Replace Variable and Search & Replace Clipboard actions are changed into the new action when you run Keyboard Maestro 8. So if you ever then run version 7, they will be lost, and if you then run version 8 again, they will still be lost.

I’m syncing the macros on two computers via the Macro Sync File. I installed KM8 on one and there was a gap of a few minutes before I installed it on the other computer. Maybe that’s where the glitch happened?

That shouldn’t be enough to cause an issue because Keyboard Maestro wont sync from an older version macro file.

I have tracked this issue down. I believe it is 10.10-specific.

It is fixed for 8.0.1 which should be released very soon.

3 Likes

Thanks for the quick fix!

Unfortunately I found another horrendous GUI bug:

[details=Open for details]

;)[/details]

4 Likes

Good eye, @Tom. I had to roll-back, and LMAO on that one. :sunglasses:

3 Likes

Yeah, me too. I was so shocked, I rolled back to KM 6 instantly! Thanks God I still had a copy.

4 Likes

You are so mean!

3 Likes

Care to share what made it particular to the letter “r”? Enquiring minds want to know!

2 Likes

The code was supposed to remove carriage returns by search and replacing \r, but accidentally I put \R. It’s always been used as a lowercase, but apparently, in 10.11 and later, \R works. But in 10.10, \R is just an R.

2 Likes

That’s genuinely interesting. By all that is Googleable, it would seem that 10.10 is the only version actually handling the escaped capital R correctly. I wonder what caused the behavior to change…

Anyway, thanks for sharing!

Except that \R is a valid RegEx special code, NOT a capital R:

\R -- Match a new line character, or the sequence CR LF. The new line characters are \u000a, \u000b, \u000c, \u000d, \u0085, \u2028, \u2029 [Since ICU 55]

It is macOS 10.11+ that is handling it correctly.

1 Like

Ahh, that actually explains it. \R clearly was not supported prior to 10.11. So prior to 10.11 it was just an “R”.

That actually makes me feel a bit better.

1 Like

Just curious, is ICU’s regex library the one that macOS uses, then? I tried to find an official home for “the definition of regex patterns” and they all seem to be platform, language, and library dependent.

Yes, Keyboard Maestro uses the system regex, which is based on icucore (apparently an older version in 10.10).

1 Like

Good to know! Thanks!

I believe all of these issues were resolved/fixed with the Keyboard Maestro 8.0.1 update.

If not, please reply with details about the open issue.

In the future, we request that each issue/bug report be posted in a separate topic, so it is easier to discuss, track, and then mark "Solved" when a fix is released.

Thanks.

Fixed in Keyboard Maestro 8.0.2.
Please confirm, and post reply of "Solved".

@juljuljul, I believe all of these issues have been fixed by Keyboard Maestro 8.0.2 update.

Please confirm the fix, and check "Solved" if fixed.