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

Copy Query Not Working on WSL #125

Open
acudworth3 opened this issue Mar 4, 2025 · 3 comments
Open

Copy Query Not Working on WSL #125

acudworth3 opened this issue Mar 4, 2025 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@acudworth3
Copy link

Issues

Hey this might be a problem on my end, but I figured I'd ask since I can't figure it out. I am using WSL and definitely have xclip and xsel installed but still get the message below when trying to use the copy query feature. I am otherwise able to use the system clipoboard in WSL with any other tools. Any chance this an issue with jqp rather than my setup?

Thanks for a great tool! Copying network calls as curl from browser dev tools and piping into this command it wonderful

No clipboard utilities available. Please install xsel, xclip, wl-clipboard or Termux:API add-on for termux-clipboard-get/set.
@noahgorstein noahgorstein added the help wanted Extra attention is needed label Mar 6, 2025
@noahgorstein
Copy link
Owner

Hey @acudworth3. Thanks for the kind words. This is the first report I'm hearing of this so not sure if you are the first to encounter it or report it. I'll try and do a bit of digging to see if there are some known issues of our usage
https://github.com/atotto/clipboard on WSL. Unfortunately, I don't have access to a Windows machine so may be a bit hard for me to debug.

If you want to do some investigation/make a contribution - I'd be more than happy to review. Perhaps if it's an issue with our dependency we may just be able to swap it out with one that has support for WSL.

@acudworth3
Copy link
Author

Sounds great. I'll update here when I get to fixing it. Odds are its an issue on my end, but I'll let you know what I find.

@acudworth3
Copy link
Author

Ok so looks like atotto doesn't have a fallback to clip.exe which is what WSL uses for the system clipboard. Also a handful of work arounds suggested in that thread.

It's still a bit odd though because I do have xclip installed on the Linux side. Possibly the something is interfering in the process.

atotto/clipboard#45

One suggestion is to switch to this one.

atotto/clipboard#45 (comment)

I'm happy to give a few of these a try but haven't really used golang before. So the results might not be pretty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants