CodeSnap icon indicating copy to clipboard operation
CodeSnap copied to clipboard

CTR+C (Copy to clipboard)

Open Paragraph64 opened this issue 5 years ago • 7 comments

Nothing happend, only error "Can't open display". Tested on linux and windows. Whats wrong?

Paragraph64 avatar Mar 19 '20 08:03 Paragraph64

Same here, I use VSCode + WSL. Even tried installing xclip to WSL.

ahmad-taha avatar Jul 03 '20 16:07 ahmad-taha

Also the same problem, works fine without a remote connection, but the following error when in a WSL remote connection:

image

harryjubb avatar Jul 10 '20 10:07 harryjubb

Our current method of copying to clipboard does not seem to be compatible with WSL... It's possible this could be worked around in the future, but it not working with WSL is expected at the moment.

fuzetsu avatar Sep 14 '20 01:09 fuzetsu

I like it more as it is currently, just by right clicking it copies to the clipboard, I prefer that to having to select and copy with the classic Ctrl + C method

MillhioreBT avatar Sep 25 '20 15:09 MillhioreBT

I had the same issue with a remote headless centos vm from Windows. Probably because it needs to output to a display.... 🤷‍♂️ So, I don't know if it has already been mentioned, but you can force Codesnap to install locally instead of remotely (WSL, SSH, ...). In vscode settings, add:

"remote.extensionKind": {
    "adpyke.codesnap": [ "ui" ],
 }

Then... hum... I disabled the extension, restarted vscode, and it proposed me to install it locally. I did, then enabled it and restarted (not sure all of this is necessary). Now It works as it uses the host, Windows for me, to copy.

fvelcker avatar Oct 07 '20 10:10 fvelcker

Can someone verify if the issue persists as of v1.3.4?

MuTsunTsai avatar Jul 04 '21 03:07 MuTsunTsai