telesoho / vscode-markdown-paste-image

Smartly paste for Markdown.
MIT License
139 stars 41 forks source link

Paste cannot work #120

Open zerogtw opened 1 year ago

zerogtw commented 1 year ago

Problem

I have been using the paste(ctrl+alt+v) function normally before, but recently found that the command is not used.

When I try to use the command, a prompt appears in the lower right corner of vscode.

image

My env

OS: win10 VSCode: 1.70.0 Markdown Paste: v1.0.0

My try

  1. Re-install the plug-in -> failed
  2. Install the old version of Markdown Paste (0.21.2, 0.21.1) -> failed
  3. Try resetting the plugin's settings -> failed

Question

Any good suggestions for this problem? I'm not sure if it's my personal problem or a plugin problem, or a vscode problem

telesoho commented 1 year ago

@zerogtw

This extension need powershell command to run script on windows. So you must make sure powershell can be search in PATH. You can use the where command to check powershell location:

C:\>where powershell
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
avila commented 1 year ago

I'm also affected by this issue. Powershell is installed in my system. Note that I don't have admin rights. Please let me know I can test or try something.

image

System:

Markdown Paste version:  1.0.1 (September 10, 2023)

VS Code: 
Version: 1.71.0 (system setup)
Date: 2022-09-01T07:36:10.600Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No
telesoho commented 1 year ago

@avila

You can try the following command line.

cd %userprofile%\.vscode\extensions\telesoho.vscode-markdown-paste-image-1.0.1\node_modules\xclip\dist\res\scripts
powershell -File win32_get_clipboard_content_type.ps1

If there is no problem it will get clipboard type information.

image