vscode-paste-image icon indicating copy to clipboard operation
vscode-paste-image copied to clipboard

Extension doesn't save images in Windows

Open petrdvor opened this issue 3 years ago • 8 comments

When the paste action is triggered either by shortcut or from the command pallete, the 'asssets' folder or any nested folder is created but the image is not created/saved. The PowerShell is in the PATH variable. VS Code version: 1.58.2, Win10

petrdvor avatar Jul 21 '21 21:07 petrdvor

I am able to reproduce this. Do you see the following message as well when you try this? image

I am using Window + WSL.

ksprashu avatar Aug 21 '21 14:08 ksprashu

No, I don't get any message. Only the folder is created, but the picture is not there nor shown as a link in the md text.

petrdvor avatar Aug 23 '21 19:08 petrdvor

I ran into a similar issue on Windows 10. Root cause appears to be anti-virus software quarantining a Powershell script for the extension: %userprofile%\.vscode\extensions\mushan.vscode-paste-image-1.0.4\res\pc.ps1.

kelvin-cheng avatar Aug 25 '21 18:08 kelvin-cheng

Interesting... I don't have a mushan* folder in my %userprofile%\.vscode\extensions path.

ksprashu avatar Aug 29 '21 04:08 ksprashu

I think i encount the same problem with following procedures.

step1: paste one image to clickboard step2: as the extension 'paste image' described, use the'Ctrl+ALT+V' to insert the image in the markdown file. step3: it prompt the error 'failed make folder message=spawn EPERM'

I guess it is related with the feature of https://code.visualstudio.com/docs/editor/workspace-trust I try to add the config 'security.workspace.trust.emptyWindow=fasle' in the setting. but it still doesn't work.

samxue avatar Aug 29 '21 09:08 samxue

Hello, the same problem is here

2021-11-25_09h22_24

kovalroma avatar Nov 25 '21 08:11 kovalroma

2021-11-25_09h26_24

kovalroma avatar Nov 25 '21 08:11 kovalroma

@kovalroma @petrdvor @samxue

This repository has not seen any activity in over 3 years. There is an actively maintained fork here: https://github.com/telesoho/vscode-markdown-paste-image

Your use-case works in the fork. I have personally implemented WSL support yesterday.

@kelvin-cheng Other people did some work for win10. I would suggest you check for the fork as well. No promises.

vezaynk avatar Dec 25 '21 05:12 vezaynk