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

Errors occur unless no-clipboard option is used in WSL #623

Open
jesselve opened this issue Aug 3, 2020 · 2 comments
Open

Errors occur unless no-clipboard option is used in WSL #623

jesselve opened this issue Aug 3, 2020 · 2 comments

Comments

@jesselve
Copy link

jesselve commented Aug 3, 2020

Steps to reproduce:

  1. install in WSL (yarn global add serve)
  2. run in WSL (npx serve)

Result:
ERROR: Cannot copy to clipboard: write EPIPE

Providing a directory argument yields a different error, e.g. npx serve build
Result:

ERROR: Cannot copy to clipboard: Command failed: xsel --clipboard --input
xsel: Can't open display: (null)
: Inappropriate ioctl for device

Workaround:
Providing the -n argument eliminates the error.

@talves
Copy link

talves commented Oct 3, 2020

For those of you who want wsl to be able to copy your clipboard from WSL to your clipboard, one way would be to have an x-server on windows and have your wsl environment setup to talk to the server.

I followed this article to get it setup: https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242

This setup will allow you to more than just copy to the clipboard. Otherwise the workaround above is perfectly fine to use and remove the error.

@rigwild
Copy link

rigwild commented Mar 4, 2021

This is a duplicate of #533.

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