Community
Participate
Working Groups
When launching Eclipse from KDE, one might experience several types failures with cut, copy and paste actions in Eclipse Web Page Editor. The reported misbehavior is non-deterministic, but frequent enough to degrade user experience. Inside the editor, specially the Web Page Editor, selecting text and issuing the copy action (ctrl+c or equivalent menu entry) may not copy the select text to the clipboard. The cut action (ctrl+x or equivalent menu entry) erases the selected text as expected, but may not save to clipboard (text that was cut is lost!). Sometimes, paste only writes part of the expected text, other part of the text are lost. Copy & paste never fails on text boxes in dialogs. It fails only on text editors, especially Web Page Editor. Esben Mose Hansen, Klipper sort-of-maintainer, said on Sep 2009: "It is most probably because Eclipse is one of the programs that empties the clipboard before claiming it. If that is case, the best solution would be for Eclipse to stop doing that… at best, it is unnecessary chatter via. the X protocol. It might also introduce a race condition, especially in these multicore days, as you probably see with Klipper here." These reports may be related: https://bugs.eclipse.org/bugs/show_bug.cgi?id=97557 https://bugs.eclipse.org/bugs/show_bug.cgi?id=192561 https://bugs.eclipse.org/bugs/show_bug.cgi?id=200743 Temporary workarounds: 1. In eclipse, press Ctrl+C twice. 2. Disable the Klipper’s "Prevent empty clipboard" setting. 3. Disable Klipper.
Is this still reproducible?
I have a problem with these symptoms with Eclipse Photon 4.8.0 under RedHat Enterprise Linux 7.5 (gnome), using the C/C++ IDE. Sometimes cut/copy and paste doesn't work; 'cut' always deletes the text, but 'paste' sometimes pastes the previous contents of the buffer. Undoing with Ctrl-Z and redoing the cut/copy causes correct behaviour.
(In reply to Chris Ward from comment #2) > I have a problem with these symptoms with Eclipse Photon 4.8.0 under RedHat > Enterprise Linux 7.5 (gnome), using the C/C++ IDE. Sometimes cut/copy and > paste doesn't work; 'cut' always deletes the text, but 'paste' sometimes > pastes the previous contents of the buffer. Undoing with Ctrl-Z and redoing > the cut/copy causes correct behaviour. Can you try with the a latest I-build? https://download.eclipse.org/eclipse/downloads/
I have downloaded and installed the version of Eclipse you asked for. Is it possible to get the C/C++ tooling for use with that level ? On initial use, this latest Eclipse does not seem to resolve the problem.
(In reply to Chris Ward from comment #4) > I have downloaded and installed the version of Eclipse you asked for. Is it > possible to get the C/C++ tooling for use with that level ? > > On initial use, this latest Eclipse does not seem to resolve the problem. You can install CDT using p2 repo: https://download.eclipse.org/tools/cdt/releases/9.5/ Does the problem also happen without Klipper? And the issue here is that ctrl+x and ctrl+v doesn't paste the correct content into the editor?
The problem happens for me with GNOME (under RHEL 7.5), so klipper is not in use. Yes, the problem is with Ctrl-X and Ctrl-V not pasting the right text in eclipse; usually it pastes blank text.
On further testing, the issue seems resolved or at least greatly improved by the latest eclipse. Is there any change you know about which should fix this issue ?
(In reply to Chris Ward from comment #7) > On further testing, the issue seems resolved or at least greatly improved by > the latest eclipse. Is there any change you know about which should fix this > issue ? I'm not sure which change fixed the issue, I tried bisecting but cannot reproduce the issue with the java editor in 4.8. Is the issue fully resolved for you now?
We are heavy CDT/KDE/Eclipse/RHEL users since many years and I know about exact zero cases reported against 4.7.2 and 4.9.0. I'm speaking about ~50 full time developers using IDE and a lot of customers using the product based on same platform. I can hardly imagine such bug would remain not reported, if it would be something basic. However there were lot of cases in the past where using Eclipse over x11vnc corrupted the clipboard in Eclipse, see bug 205678. I would recommend to close this bug and create a new one, if the issue schould appear again - with exact description of the environment where it was observed and with logs, exact software versions involved etc.
Yes, it is fully resolved for me now.
Thanks Andrey and Chris for the feedback! Closing the ticket as per comment #9 and #10. Please open a new one if the issue occurs.