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

Not support wsl2 #34

Closed
MerliniKing opened this issue May 24, 2022 · 23 comments
Closed

Not support wsl2 #34

MerliniKing opened this issue May 24, 2022 · 23 comments

Comments

@MerliniKing
Copy link

show error:
platform is not supported

@ekickx
Copy link
Owner

ekickx commented May 27, 2022

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?

@ekickx
Copy link
Owner

ekickx commented May 27, 2022

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"}

@MerliniKing
Copy link
Author

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

@MerliniKing
Copy link
Author

MerliniKing commented May 28, 2022

clipboard-image: require("clipboard-image.health").check()
========================================================================
## Checking dependencies
  - ERROR: platform is not supported

@MerliniKing
Copy link
Author

MerliniKing commented May 28, 2022

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

@MerliniKing
Copy link
Author

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

@MerliniKing
Copy link
Author

when just run uname, the output is Linux

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

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

@MerliniKing
Copy link
Author

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" }

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

@MerliniKing
Copy link
Author

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?

@ekickx ekickx closed this as completed May 28, 2022
@ekickx ekickx reopened this May 28, 2022
@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

@MerliniKing
Copy link
Author

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

@MerliniKing
Copy link
Author

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

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

@MerliniKing
Copy link
Author

It shows There is no image data in clipboard

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

@MerliniKing
Copy link
Author

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

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

Can you try it now?

@MerliniKing
Copy link
Author

Can you try it now?

It's OK now!

@MerliniKing
Copy link
Author

Really thx for your efforts!

@ekickx
Copy link
Owner

ekickx commented May 28, 2022

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

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

2 participants