Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy key and link doesn't copy anything #2983

Closed
notuntoward opened this issue Jul 9, 2017 · 11 comments
Closed

Copy key and link doesn't copy anything #2983

notuntoward opened this issue Jul 9, 2017 · 11 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs

Comments

@notuntoward
Copy link

If I put the cursor on an entry and run "copy BibTex key and link" with either the mouse menu or the keyboard shortcut, nothing is put into the clipboard

JabRef 4.0.0-dev--snapshot--2017-07-07--master--eaf53f75d
Windows 7 6.1 amd64
Java 1.8.0_131

@Siedlerchr
Copy link
Member

Confirmed

@Siedlerchr Siedlerchr added the bug Confirmed bugs or reports that are very likely to be bugs label Jul 9, 2017
@Siedlerchr
Copy link
Member

Seems like a bug with the javafx clipboard. @tobiasdiez any idea on this?

Maybe we need to still use a swing/awt hack?
http://elliotth.blogspot.de/2005/01/copying-html-to-clipboard-from-java.html

@tobiasdiez
Copy link
Member

@jhshinn do you have an idea why this bug occurs? (The recent changes in #2952 are probably the source for this problem.)

@tobiasdiez tobiasdiez added this to the v4.0 milestone Jul 9, 2017
@jhshinn
Copy link
Contributor

jhshinn commented Jul 10, 2017

@tobiasdiez I'm using 4.0beta with the revision #2952 under Windonws 10 at the moment, and the function works perfectly with both the shortcut key and the mouse pop-up menu. I just guess that the javafx revision may collide with other revisions made between 4.0beta and dev-snapshot mentioned above. (But I have no idea what it is.. -.-) I hope this helps you.
@Siedlerchr Just for your information. As I mentioned in the commented-out code as invoking PR, the swing/awt method only works under Mac, not under Windows 10 and Ubuntu 16.04.

@Siedlerchr
Copy link
Member

Okay, thanks for the clarification. As you are saying, you still use the 4.0 beta, can you tell us which corresponding java version you are using? Just to narrow the problem a bit down.
I currently use:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

37dc46e

@jhshinn
Copy link
Contributor

jhshinn commented Jul 10, 2017

@Siedlerchr It seems that I'm using the same as you are. My version is as below.

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

FYI, I had manually tested the revision using 4.0beta before invoking PR, because the dev-code did not work properly under Ubuntu 16.04. (I could not edit the entry.)

@lenhard lenhard modified the milestones: v4.1, v4.0 Jul 11, 2017
@tobiasdiez
Copy link
Member

I can reproduce this problem on Windows 10 with Java 1.8.0.152. The code is correct as far as I can see and debugging (even the internal javafx code) didn't reveal any problems (according to java everything is put successfully into the clipboard).

@jhshinn
Copy link
Contributor

jhshinn commented Oct 24, 2017

The function "copy BibTex key and link" seems to work well under below circumstatnces.

JabRef 4.0
Windows 10 10.0 amd64 
Java 1.8.0_151

I could paste the hyperlink to the new-message window of gmail.
I've tested all of the three ways to copy

  • menu bar
  • shortcut key
  • mouse pop-up menu

@tobiasdiez tobiasdiez removed this from the v4.1 milestone Nov 25, 2017
@lenhard
Copy link
Member

lenhard commented Jan 17, 2018

So do I understand this thread correctly? The function is actually working? If yes, then we can close this. Any updates with the newest version of JabRef?

@Siedlerchr
Copy link
Member

Siedlerchr commented Jan 17, 2018

Yes, it works also in the latest dev version, I could paste it succesfully into my gmail. As @jhshinn notes, seems to work only for certain applications,

Could have been a problem with the java version

grafik

@koppor
Copy link
Member

koppor commented Apr 4, 2018

Refs #549 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

No branches or pull requests

6 participants