Vscode-gitlens: Copy Commit Sha to Clipboard not working

Created on 28 Feb 2017  路  6Comments  路  Source: eamodio/vscode-gitlens

Hello,

I can't seem to make the "Copy Commit Sha to Clipboard" feature work, no matter how hard I try.

I'm using version 1.9.1 on Ubuntu-Gnome 16.04.

I tried the feature using various ways: the right click contextual menu, the command palette or one of the various quick pick uis.

This has never resulted in anything being copied to the clipboard. Actually my clipboard remains unchanged and still contains what it had before.

Any way to investigate this ?

Thanks.

bug

Most helpful comment

That did the trick, it's now working fine, thanks for the info !

All 6 comments

@rrerolle It seems to be a linux specific issue. I'll dig into and see what I can come up with.

@rrerolle It seems the node package I'm using to copy to the clipboard requires that xclip be installed. You can install it via sudo apt-get install xclip.

If you install that it should start working. Please let me know if not.

That did the trick, it's now working fine, thanks for the info !

@eamodio, I suggest you handle the case when xclip is not installed. It happened to me and for the longest time I thought this was because of a buggy extension. Finally I came to github to open a bug and only now found this issue :(

Edit: er, I meant @eamodio

@vadimcn GitLens 8 will display the following message if it gets an error trying to use xclip

Unable to copy commit id, xclip is not installed. You can install it via `sudo apt-get install xclip`

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DavidBabel picture DavidBabel  路  3Comments

robertzauner picture robertzauner  路  3Comments

derrickstolee picture derrickstolee  路  3Comments

rfgamaral picture rfgamaral  路  3Comments

batjko picture batjko  路  4Comments