-
Notifications
You must be signed in to change notification settings - Fork 9k
Catch failure to open clipboard #2590
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
Conversation
73794449
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change
zadjii-msft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DHowett-MSFT we should probably push a hotfix update with this change. Dunno if we have others, but this one definitely
miniksa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved but left unmerged so @DHowett-MSFT can see this and consider for patch release.
|
Yes, we should service. |
|
Thank you @carlos-zamora for addressing this issue so quickly! |
| Clipboard::SetContent(dataPack); | ||
| Clipboard::Flush(); | ||
| } | ||
| CATCH_LOG(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange thing is that it still crashes to me (every time I do copy). However if I change CRASH_LOG(); to catch(...) { } then there is no longer a crash.
@DHowett-MSFT Any ETA for the hotfix? The build of Terminal that is in MS Store is pretty much unusable and it's not even possible to downgrade to a previous release, which I was pretty happy with. |
|
🎉 Handy links: |
Summary of the Pull Request
Unfortunately, we can't necessarily guarantee that you can open the clipboard. It just happens -.-. So, let's catch this error and not crash the Terminal.
References
PR Checklist
Tests added/passedRequires documentation to be updated