Giter Club home page Giter Club logo

Comments (23)

ekickx avatar ekickx commented on June 14, 2024 3

Can you try it now?

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

Sorry for the late reply. I actually want to add support for wsl in #21 but I can't test it since I don't have windows in my device.

I will fix the conflict soon and after that can you try it?

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

Ok I just fixed the merge conflict. You can test #21 now

Oh if you use packer just do

use {"ekickx/clipboard-image.nvim", branch = "feat_WSL"}

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

I use vim-plug for plugin manager, and I install this branch by Plug 'ekickx/clipboard-image.nvim', { 'branch': 'feat_WSL' }
But same error again

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024
clipboard-image: require("clipboard-image.health").check()
========================================================================
## Checking dependencies
  - ERROR: platform is not supported

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

additional info:
when run uname -a in wsl, the output is Linux xxxxxxxx 15 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

and the content of /proc/version is Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Mar 2 00:30:59 UTC 2022

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

when just run uname, the output is Linux

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

Ok just to make sure, can you show me the output of this command

:lua print(vim.inspect(vim.fn.readfile("/proc/version")))

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

Ok just to make sure, can you show me the output of this command

:lua print(vim.inspect(vim.fn.readfile("/proc/version")))

{ "Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Mar 2 00:30:59 UTC 2022" }

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

I just pushed a new change. Can you try it now?

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

I just pushed a new change. Can you try it now?

It shows powershell is not installed, but I already add powershell.exe into PATH.

Maybe need change powershell to powershell.exe?

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

Hmm weird 🤔. In check_package_installed, I use vim.fn.executable to check for powershell.exe. Maybe you can do

:lua print(vim.fn.executable("powershell.exe"))

If the output is not 1 then there is something wrong

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

Hmm weird 🤔. In check_package_installed, I use vim.fn.executable to check for powershell.exe. Maybe you can do

:lua print(vim.fn.executable("powershell.exe"))

If the output is not 1 then there is something wrong

the output is 1

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

Oh, maybe the path is wrong, powershell is ok now

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

So is it ok now? Tell me if it's still not working

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

It shows There is no image data in clipboard

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

Have you copied the image? If you have and those error still appear than I did something wrong to check the clipboard's content

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

yes, i copied the image in win10, and want to paste in WSL2

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

Ahh I think I know what's wrong here. I forgot to check clipboard's content on WSL. My bad

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

Can you try it now?

It's OK now!

from clipboard-image.nvim.

MerliniKing avatar MerliniKing commented on June 14, 2024

Really thx for your efforts!

from clipboard-image.nvim.

ekickx avatar ekickx commented on June 14, 2024

You're welcome. And thanks too for helping me fixing this issue. I'll merge #21 now

from clipboard-image.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.