CodeSnap icon indicating copy to clipboard operation
CodeSnap copied to clipboard

CTRL + C not working on Windows

Open MidSpike opened this issue 3 years ago • 11 comments

Doing CTRL + C does not copy the image to the clipboard, neither does clicking on the shutter button.

System Specs:

  • Windows 10 Pro 20H2 (19042.928)
  • Visual Studio Code: v1.55.2

MidSpike avatar Apr 21 '21 21:04 MidSpike

Yeah; I try with codesnap.shutterAction: copy but it doesn't work.

ourainbows avatar Apr 28 '21 00:04 ourainbows

can also confirm, it doesnt wanna work

HerXayah avatar Apr 30 '21 09:04 HerXayah

yeah, It doesn't work, it's coping a file without extension in my case

srodriguez20 avatar May 03 '21 00:05 srodriguez20

I had to downgrade to 1.2.1 to get it working again for the time being

emilioestebanez avatar May 04 '21 12:05 emilioestebanez

Has the same problem ,but I have noticed that when I press Ctrl + C , this extension does copy only text to clipboard and also I am not even able to paste that only text anywhere in my pc.

So, for now I have downgraded my extension version to 1.2.1 as @emilioestebanez said and yeah it's working properly.

DGamer007 avatar May 05 '21 11:05 DGamer007

How 2 downgrade though?

HerXayah avatar May 05 '21 13:05 HerXayah

In that extension tab you will find a uninstall button and at the end of that button you'll find down-aero , click on that down-aero, click on install another version and then pick your version from list

DGamer007 avatar May 06 '21 04:05 DGamer007

Can confirm that the copy to clipboard function is broken in all CodeSnap versions after 1.2.1.

Jaeiya avatar May 09 '21 22:05 Jaeiya

I have confirmed that the problem is caused by one of the dependencies, img-clipboard (by the same author). By downgrading img-clipboard from v1.1.0 back to v1.0.4, the problem is solved. I'll submit an issue over there.

MuTsunTsai avatar Jul 02 '21 08:07 MuTsunTsai

I later found a completely different method of copying the image, without using img-clipboard (sorry about that @kufii). I've just made a PR #71.

MuTsunTsai avatar Jul 02 '21 09:07 MuTsunTsai

Confirmed that this issue is fixed in v1.3.4

MuTsunTsai avatar Jul 02 '21 15:07 MuTsunTsai