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, CopyOrCancel and Cut commands hang in Linux until you copy in some other app #3884

Closed
3 tasks done
fsackur opened this issue Nov 27, 2023 · 2 comments · Fixed by #3937
Closed
3 tasks done

Copy, CopyOrCancel and Cut commands hang in Linux until you copy in some other app #3884

fsackur opened this issue Nov 27, 2023 · 2 comments · Fixed by #3937
Labels
Area-Copy/Paste-Linux Issues about copy/paste on Linux Resolution-Fixed

Comments

@fsackur
Copy link

fsackur commented Nov 27, 2023

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

N/A

Screenshot

N/A

Environment data

PS Version: 7.4.0
PS HostName: ConsoleHost
PSReadLine Version: 2.3.4
PSReadLine EditMode: Emacs
OS: Linux ghetto-blaster 6.5.12-300.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 20 22:44:24 UTC 2023 x86_64 GNU/Linux
BufferWidth: 207
BufferHeight: 26

Steps to reproduce

  • Select some text
  • Hit Ctrl-C or Ctrl-X

Expected behavior

  • Highlighting is cleared
  • Control returns to the prompt

Actual behavior

  • The prompt hangs
  • In other apps, the selected text can be copied
  • When any other app copies to the clipboard, the hung PSReadLine shell returns control and the highlighting is cleared
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 27, 2023
@daxian-dbw daxian-dbw added the Area-Copy/Paste-Linux Issues about copy/paste on Linux label Jan 31, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the In-PR A PR is opened targeting the issue label Feb 1, 2024
@daxian-dbw
Copy link
Member

@fsackur Sorry that this issue and #1993 slipped off my radar. I didn't realize the "copying to system clipboard" functionality had been always broken. I submitted the fix #3937, the artifact produced from CI can be found here. Please give it a try.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Feb 2, 2024
@daxian-dbw daxian-dbw added Resolution-Fixed and removed In-PR A PR is opened targeting the issue labels Feb 2, 2024
@fsackur
Copy link
Author

fsackur commented Feb 8, 2024

I confirm the fix works on Fedora 39. Thanks @daxian-dbw for this, and for all the other work you do for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Copy/Paste-Linux Issues about copy/paste on Linux Resolution-Fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants