Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste cannot work #120

Open
zerogtw opened this issue May 10, 2023 · 3 comments
Open

Paste cannot work #120

zerogtw opened this issue May 10, 2023 · 3 comments

Comments

@zerogtw
Copy link

zerogtw commented May 10, 2023

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
Copy link
Owner

@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
Copy link

avila commented Sep 19, 2023

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
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants