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

[BUG]: xclip installed but "Error: failed to copy to clipboard: No clipboard utilities available" #108

Open
ReHoss opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working needs-triage needs to be reviewed

Comments

@ReHoss
Copy link

ReHoss commented Dec 9, 2024

What happened?

Can't copy commands to the clipboard with xclip. xclip is not recognised.

Versions

hosseinkhan@mecacpt80:~$ gh --version
gh version 2.6.0-15-g1a10fd5a (2022-03-16)
https://github.com/cli/cli/releases/latest

Relevant terminal output

hosseinkhan@mecacpt80:~$ gh copilot suggest "Undo the last commit"

Welcome to GitHub Copilot in the CLI!
version 1.0.5 (2024-09-12)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency

? What kind of command can I help you with?
> generic shell command

Suggestion:                                                                                                                                    
                                                                                                                                               
  git revert HEAD --no-edit                                                                                                                    

? Select an option
> Copy command to clipboard

✗ Error: failed to copy to clipboard: failed to copy to clipboard: No clipboard utilities available. Please install xsel, xclip, wl-clipboard or Termux:API add-on for termux-clipboard-get/set.

hosseinkhan@mecacpt80:~$ dpkg -l | grep xclip
ii  xclip                                                  0.13-2                                        amd64        command line interface to X selections
@ReHoss ReHoss added bug Something isn't working needs-triage needs to be reviewed labels Dec 9, 2024
@ReHoss ReHoss changed the title [BUG]: [BUG]: xclip installed but "Error: failed to copy to clipboard: No clipboard utilities available" Dec 9, 2024
@HiddenMachine3
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants