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

Can't paste on windows platform #84

Closed
ar37-rs opened this issue Sep 26, 2022 · 2 comments
Closed

Can't paste on windows platform #84

ar37-rs opened this issue Sep 26, 2022 · 2 comments

Comments

@ar37-rs
Copy link

ar37-rs commented Sep 26, 2022

Since version 3, arboard can't paste on other apps with text edior including vscode.

@complexspaces
Copy link
Collaborator

Thanks for opening an issue, @ar37-rs. I was able to reproduce the behavior locally but AFAICT, this is a side-effect of intentional changes made in #60. Does your problem go away if you close the clipboard right after finishing the text setting?

In that PR, arboard switched to only opening the clipboard once per call to Clipboard::new(), instead of open and closing it with every operation. We did this so that so users can perform multiple operations on the clipboard "atomically" if desired. The intended behavior is that you drop a Clipboard structure when you're done with a set of operations like the Win32 docs reference.

I apologize for forgetting to add this in the changelog for 3.0. I've opened #85 to handle that.

@ar37-rs ar37-rs closed this as completed Oct 1, 2022
emilk added a commit to emilk/egui that referenced this issue Oct 7, 2022
Closes #2109

Since arboard 3.0 you must absolutely not hold onto `arboard::Clipbaord`
longer than you are using it.

See 1Password/arboard#84
emilk added a commit to emilk/egui that referenced this issue Oct 7, 2022
Closes #2109

Since arboard 3.0 you must absolutely not hold onto `arboard::Clipbaord`
longer than you are using it.

See 1Password/arboard#84
@complexspaces
Copy link
Collaborator

Hey again, @ar37-rs. I just wanted to let you know that the problematic changes have been undone and published as 3.2.0. It should work identically to arboard 2.x on Windows again. Sorry again for the churn 😓.

sidit77 pushed a commit to sidit77/egui-tao that referenced this issue May 6, 2023
Closes emilk/egui#2109

Since arboard 3.0 you must absolutely not hold onto `arboard::Clipbaord`
longer than you are using it.

See 1Password/arboard#84
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

2 participants