Bug #10177 2007-01-31 13:58

kazade

Copy doesnt always work on linux

On Ubuntu Edgy (and possibly other linux distributions) copying text with Ctrl+C or cutting with Ctrl+X doesn't always work. This means that you can cut a section of text, but when you paste it will not paste the text you cut, but rather any text that was on the clipboard beforehand.

More information can be found in these forum posts:

http://forums.codeblocks.org/index.php?topic=2929.0

http://forums.codeblocks.org/index.php?topic=4972.msg38997#msg38997

Category
Application::Editor
Group
 
Status
Closed
Close date
2007-09-16 22:08
Assigned to
 
artoj 2007-02-03 18:02

Which wxWidgets version do you have?

Does this happen with specific files?

I tried to reproduce this by copying and pasting several parts of the C::B source code around but it worked every time (Ubuntu Edgy, wx2.6.3p2, rev 3564).

kazade 2007-02-03 20:28

I've just installed a clean install of Fiesty, so I cant check what wx version I was using. However I can tell you that it happened with ANY file, and it was a continuous problem for months with different nightlies. I'm just installing C::B on Fiesty, if the problem still occurs I'll post more info.

kazade 2007-02-04 09:17

OK, its still happening, this is on a clean installation of Kubuntu Fiesty, the only program I have installed is Code::Blocks.

Build: 3562

wx.2.6.1

The best way to reproduce is to keep cutting and pasting lines of text with CTRL+X and CTRL+V. This bug only happens about a third of the time and happens with CTRL+C as well as cutting. If you test with cutting and pasting its obvious when the copy failed.

artoj 2007-02-04 12:52

I think you're using wx 2.6.3 w/ patch 2 because that's the version in Feisty repos. You can still check it by running:

$ apt-cache show libwxgtk2.6-0 | grep Version

But I can't still reproduce it. I created a file with "Line 1" to Line 5" on separate lines. I copy/cut pasted every line successfully. I also tested this on Feisty (through VMWare) and it still works.

kazade 2007-02-04 14:47

Hmm... this is a bit of a wierd one. You are right about the WX version, I was going by the version reported in the C::B about dialog.

I can't understand why this would just happen to me? I've installed 2 different versions of Kubuntu cleanly so it cant be that, I thought perhaps hardware (keyboard) but the fact that the text is removed by the cut means its not that.

Did you try Kubuntu or Ubuntu? Perhaps its a KDE thing? I dunno, I'm at a loss :/

artoj 2007-02-04 17:26

I tested it on Ubuntu Feisty.

I agree that this is very strange problem. The editor component (Scintilla) will be updated (hopefully) soon so it might fix this but I can't promise anything.

I'll post back once I've got my testing results on Kubuntu Feisty.

artoj 2007-02-05 09:44

I've now tested it on Kubuntu Feisty and every copy/cut/paste operation was successful.

kazade 2007-02-05 12:00

A quick google search brought this up:

http://www.mail-archive.com/pgadmin-support@postgresql.org/msg06251.html

Exactly the same problem with another wxWidgets application.

kazade 2007-02-18 16:06

This is now getting very VERY irritating. I'm still running Feisty, and as my project is getting larger this seems to occur more and more, now cut hardly ever works. I'm wondering if this is related to the size of the project, that might explain why simple tests don't show this up.

ceniza 2007-08-04 23:01

It doesn't really seem to be a Code::Blocks bug. Many people using Eclipse, SPE and other editors have this problem too.

For reference, check https://bugs.eclipse.org/bugs/show_bug.cgi?id=153809

One suggestion is to disable Klipper or to just uncheck "Prevent empty clipboard".

It seems to solve the problem, even thought it's a workaround.

kazade 2007-08-05 18:39

In the end I just got fed up and switched to GNOME, the problem hasn't occurred since.

It is definitely a KDE problem, I had the same problem at work Feisty/KDE/Any CB version.

ceniza 2007-09-16 22:08

Just as it has been said it's a KDE problem with Klipper, and it involves even more applications.

Unchecking the option "Prevent empty clipboard" in Klipper solves it.