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

Error on WSL #533

Closed
Berkmann18 opened this issue Jun 3, 2019 · 5 comments · Fixed by #612
Closed

Error on WSL #533

Berkmann18 opened this issue Jun 3, 2019 · 5 comments · Fixed by #612

Comments

@Berkmann18
Copy link

When I run serve . on WSL (Ubuntu 18.04.1 on Windows 10 with the kernel v4.4.0), I get this output:

ERROR: Cannot copy to clipboard: Command failed: xsel --clipboard --input
xsel: Can't open display: (null)
: Connection refused

I tried setting DISPLAY=localhost:0 but that doesn't help.

@chase-moskal
Copy link

serve automatically copies the local address to the clipboard

it looks like this automatic feature is failing on your machine

you can supply the -n flag to tell serve to skip the clipboard step, which may help you

try:

serve -n

let us know if this solves the issue for you 👋

@Berkmann18
Copy link
Author

Berkmann18 commented Jun 5, 2019

It does indeed ignore that, but it doesn't solve that per se.

@adriangabardo
Copy link

@Berkmann18 I also run serve from WSL, and it is not an operation-critic feature, as chase-moskal said, you can run the -n flag so that it doesn't try to put on the clipboard.

@rfgamaral
Copy link

Same issue here, but the root cause is actually here.

@Berkmann18
Copy link
Author

Berkmann18 commented Jan 14, 2020

@adriangabardo True, it's not an operation-critic thing but noisy and which leaves room for (potential) bugs (especially as the solution is just a workaround).

That being said, I don't use Windows anymore so I wouldn't be able to tell if it's still an issue on WSL as this problem doesn't occur on XFCE4's terminal on Arch.

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

Successfully merging a pull request may close this issue.

4 participants