Copy and Paste from jEdit to terminal Doesn't Paste (X11 selection / middle mouse works)

Bug #347308 reported by user2037
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
jEdit
Unknown
Unknown
jedit (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: jedit

Attempts to paste into Terminal from J-edit 4.3pre16 do not succeed. Instead the Paste option of Terminal is disabled. Pasting into G-edit works. Copying and pasting from G-edit into Terminal works as expected. Disabling plug-in's does not help.

Sun Java 1.5.0 build 16 was used to run J-edit.

Revision history for this message
Colin Law (colin-law) wrote :

Using jEdit 4.3pre16, Java 1.6.0_10 on Ubuntu 8.10 I do not have any problem pasting into Gnome Terminal 2.24.1.1
Colin

Revision history for this message
Daniel Hahler (blueyed) wrote :

I'd also suspect some problem with gnome-terminal (am I correct, that you're using this?) rather than with jEdit (where I would really refer to all java apps).
Have you tried pasting from another Java app?
How do you select for pasting and do the paste? Via mouse selection and middle-click or via Ctrl-C and Ctrl-V?

Changed in jedit (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Daniel Hahler (blueyed)
summary: - Copy and Paste from J-edit to Terminal Doesn't Paste
+ Copy and Paste from jEdit to terminal Doesn't Paste
Revision history for this message
John Kennedy (john-kennedy-maglabs) wrote : Re: Copy and Paste from jEdit to terminal Doesn't Paste

I've also got this problem running JEdit 4.3.2 on Ubuntu 9.10 with Java 1.6.0_18. The problem is specifically in pasting to the shell (gnome-terminal) I've not noticed it anywhere else.

I can successfully paste from the terminal to JEdit.

The middle mouse button will successfully paste from JEdit to a terminal, but attempting to paste using <ctrl>C and <shift><ctrl>V doesn't work. I can successfully cut and paste from Eclipse using the control keys.

The following plugins are installed:

true Buffer Selector 1.0.6 Loaded <unknown>
true BufferList 1.1 Loaded <unknown>
true Editor Scheme 1.2 Loaded <unknown>
true ErrorList 1.9 Loaded <unknown>
true GnuRegexp 1.0.1 Loaded <unknown>
true Hex Edit 0.1.3 Loaded <unknown>
true Highlight 1.8.1 Loaded 0 Bytes
true Latest Version Check 1.5 Loaded <unknown>
true LookAndFeel 1.4.0 Loaded <unknown>
true PHPParserPlugin 1.2.7 Loaded 0 Bytes
true QuickNotepad 4.3 Loaded <unknown>
true SideKick 0.9 Loaded <unknown>
true WhiteSpace 0.9.3 Loaded <unknown>

Revision history for this message
Daniel Hahler (blueyed) wrote : Re: Copy and Paste from jEdit to terminal Doesn't Paste (X11 selection / middle mouse)

I can confirm this: copying from jEdit via Ctrl-C somehow empties the clipboard buffer that's queried by gnome-terminal (you'll see that "Paste" is grayed out in the "Edit" menu).
I am using KDE and Klipper to manage the clipboard selections.
Is anyone else affected by this using Klipper by any chance?

summary: - Copy and Paste from jEdit to terminal Doesn't Paste
+ Copy and Paste from jEdit to terminal Doesn't Paste (X11 selection /
+ middle mouse)
Changed in jedit (Ubuntu):
status: Incomplete → Triaged
Daniel Hahler (blueyed)
summary: Copy and Paste from jEdit to terminal Doesn't Paste (X11 selection /
- middle mouse)
+ middle mouse works)
Revision history for this message
RodrigoMoraes (rodrigo-moraes) wrote :

This bugged me for a while and I noticed that using Sun's JDK instead of openjdk solved the issue for me, so I'm pasting what I did hoping that it can help someone with the same problem:

1. Uninstall opensdk (will uninstall jEdit)
2. Add partner repo and install sun's JDK:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin sun-java6-fonts

Revision history for this message
Colin Law (colin-law) wrote :

I can also confirm that using Sun Java fixed it for me. I thought I was using Sun Java as Help > About in jEdit says Sun Microsystems Java, but it says this both for Sun and openjdk. To check which version is *actually* being used then install the Console plugin in jEdit using the plugin manager, if not already installed. Then, in the combo-box on the top left of the Console dockable window, select "BeanShell", and type the following command:
System.getProperty("java.vm.name")

For Sun java this gives Java HotSpot(TM) Client VM
For OpenJDK it gives OpenJDK Client VM

Revision history for this message
Steve Ward (planet36) wrote :

RodrigoMoraes,

This page <https://help.ubuntu.com/community/Java> has some good info on changing the default Java to use (without uninstalling OpenJDK).
Although, you would still have to set JAVA_HOME to make jedit use the Sun JVM until #681936 <https://bugs.launchpad.net/ubuntu/+source/jedit/+bug/681936> is fixed.

Revision history for this message
Tom Hodder (09rp9wq-tom-anzd5so) wrote :

I am seeing the same problem.

Dumping OpenJDK is not an option here.

Revision history for this message
Stjepan Brbot (stjepan-brbot) wrote :

I've got the same problem, e.g. I cannot copy something form jEdit and paste it into textarea field in Chromium browser page. But there's an interesting thing. I can copy from jEdit and paste into gedit text editor and then further on copy this from gedit into textarea field in Chromium! Maybe this weird behavior could help in understanding where the bug is.

Environment: Ubuntu 11.10, jEdit 4.3.2, Java 1.6.0_23, gedit 3.2.6, Chromium 18.0.1025.142 (Developer Build 129054 Linux)

Revision history for this message
Sarah Azurin (sarah-azurin) wrote :

The same thing that happens to Stjepan happens to me on my environment.

Environment: Ubuntu 11.10, jEdit 4.5, Java 1.6.0_23, gedit 3.2.6, Chromium 18.0.1025.162

Revision history for this message
Dac Chartrand (conner-bw) wrote :

Same problem for me:

Ubuntu 12.04 LTS
java version "1.6.0_24", OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2)
jEdit 4.5.1

Pasting into gedit works.
Pasting into Terminal does not work.

Revision history for this message
Dac Chartrand (conner-bw) wrote :

PS:

I can make this work if I:

1) Purge OpenJDK
$ sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*

2) Install Oracle Java
* http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

This is unfortunate considering that OpenJDK is the official Java SE 7 reference implementation [1], but there you have it.

[1] https://blogs.oracle.com/henrik/entry/moving_to_openjdk_as_the

Revision history for this message
jmaasing (johan-zoom) wrote :

Problem persists in Ubuntu 13.10, jEdit 5.1.0, OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu2)

Can copy paste into all apps except gnome-terminal

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.