This problem was reported as early as 2016, maybe earlier. It has returned in Xojo2022r4.1
Select some text in the IDE. “Cut” it. Then “Paste”. Result: The pasted text is not the text that was cut. It’s whatever text was previously on the clipboard.
On Windows 11 I see it, too.
It seems to get worse if 2 or more projects are opened and I copied and pasted some code from one project to another before.
and again in 2023R4 on MacOS 14.3.1 (just updated). Cut removes it but doesn’t add it to the clipboard, so can’t paste.
Cut/Paste works in other applications, just the Xojo IDE where it’s not working.
It’s coincidence, not causally related. Restarting doesn’t fix it. Changing the OS versions doesn’t fix it. The problem will come back. We just don’t know when. It’s a bug that’s been hanging around for a decade and nobody knows how to fix it, because there are as of yet no steps to reproduce the behaviour; it just starts happening all of a sudden for no apparent reason. Seems like running the Xojo IDE itself in debug mode (which only the Xojo staff can do) would lead to a solution, but apparently they’ve never run into the problem, because if they had, they’d be as annoyed by it as we are, and they’d figure out what’s causing it and fix it.
Because restarting the computer doesn’t fix it, it’s probably some corrupted value in a cache somewhere, and updating the OS prompts the app to re-initialise that cache. So, yes maybe it “fixed” the problem for now. It will come back.
I have had this issue on and off for many many years. Only on macOS. Copy and paste works, cut and paste does not. Copy Cut and Paste works which is the workaround until you reboot. I remember testing other apps and not seeing them having the same problem.
It used to happen a lot years ago, now not so much. I was never able to figure out what triggered it.
Very bad things can happen cutting and pasting wrong data if you don’t notice it is pasting the wrong thing.