Open xiaoouwang opened 4 years ago
Well not being an expert of apple script I tweaked the linux.sh file to be used under Mac and found a workaround :
if
pngpaste $1 > /dev/null 2>&1
then
pngpaste $1
echo $1
else
echo "no image"
fi
Maybe one day I'll come back to find why the apple script bugs
Hi, I have the same issue, also on Catalina (10.15.4)
hi, @xiaoouwang, @petermarnef It corresponded. But I don't have a mac. Can you have it tried?
https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image
Hi! Sorry for the late reply.
I tested on MAC again but it does not seem to work (or maybe I forgot how to use this extension correctly ;-)). Repro steps:
Paste as image
options found in the VSCode commands list.You need to install pngpaste command first.
This is an FYI, have not done further investigation concerning this error (pngpaste does not seem to be an extension you can install).
Hi, @petermarnef . pngpaste is command. Can be installed with 'brew'.
$ brew install pngpaste
If it wasn't clear, the solution is posted here in Chinese: https://github.com/mushanshitiancai/vscode-paste-image/issues/67. The instructions are pretty easy to figure out once you put them through google translate.
I have the same issue, but it do not work with brew install pngpaste
I can no longer use this extension, maybe after an upgrading to mac catalina.
I also installed xclip, but to no avail.
VSC 1.42.1 macOS 10.15.3
Any possible problems ?
Tks in advance !