Clipboard "Cut" not working in the IDE, again

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.

1 Like

Mac, Linux, Windows? Version?

Can’t reproduce on mac Mojave.

Mac Studio, Monterey. It doesn’t happen every session.
Same as reported in 2016

same as reported in 2018

reported again in 2020

It’s a real thing. Restarting the IDE does not solve the problem. It is seriously annoying.

1 Like

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.

Lack of available memory…

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.

How quickly after the Cut operation are you Pasting?

0 - 10 secs - all the same.

Updated from MacOS 13.x?

Updated from 14.3

I don’t think this is just Xojo. I’m having similar problems with BBEdit lately.

Well, I never experienced this problem with any other software. It’s been a recurring problem in Xojo since 2016, maybe earlier.

2 Likes

Restarting etc didn’t seem to fix it, but upgrading to MacOS 14.4 does seem to have done the trick - for now at least.

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.

1 Like

Coincidence or not, macOS 14 is plagued with bugs, and 14.4 is the most stable until now.

@Greg_O are you using some macOS 14.0 to 14.3 version? If yes, upgrading to 14.4 fix the BBEdit issue?

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 guess this doesn’t affect all users as I have never seen this behavior (knock on wood).

1 Like

Users usually have problems with plugin mismatches needing cache resets, never saw one directly associated to the Xojo interface.

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.

1 Like

Wait, I think I found it in a .plist … This may also explain another annoying thing that happens …

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>AnnoyUsers</key>
	<dict>
		<key>com.extremely.annoying</key>
		<dict>
			<key>CutStopsWorkingForNoReason</key>
			<true/>
			<key>FindMenuItemDisabledForNoReason</key>
			<true/>
		</dict>
	</dict>
</dict>
</plist>
5 Likes