DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
25.53k stars 1.35k forks source link

[MacOS] Paste Shortcut is not working #1203

Open ssrahul96 opened 3 weeks ago

ssrahul96 commented 3 weeks ago

Current behavior

CMD + V is not working

Error from logs

2024-06-12T08:05:51.0668720+05:30   Warning [DevToys.MacOS.Core.Clipboard]  [LogGetClipboardFailed] Failed to retrieve the clipboard data.
AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
AppKit.AppKitThreadAccessException: AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
   at AppKit.NSApplication.EnsureUIThread() in /Users/builder/azdo/_work/1/s/xamarin-macios/src/AppKit/NSApplication.cs:line 127
   at AppKit.NSPasteboard.get_GeneralPasteboard() in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/dotnet/macos/generated-sources/AppKit/NSPasteboard.g.cs:line 446
   at DevToys.MacOS.Core.Clipboard.GetClipboardDataAsync() in /Users/etiennebaudoux/RiderProjects/Publish/submodules/DevToys/src/app/dev/platforms/desktop/DevToys.MacOS/Core/Clipboard.cs:line 26

How to reproduce it (as minimally and precisely as possible)

Expected behavior

Pressing CMD + V should paste the copied content

Screenshots

No response

Workaround

No response

Affected platforms

macOS

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Version 2.0-preview.1

Relevant Assets/Logs

log-20240612T080549.txt

ssrahul96 commented 1 week ago

@veler , There are no error printed in logs, But still the shortcut cmd + v is not working,

veler commented 1 week ago

Hi @ssrahul96 ,

I did a change that was supposed to help with the problem. Can you please update DevToys to the latest version (2.0.3.0) and share the logs again? The message may be different than the original one.

Thanks

ssrahul96 commented 1 week ago

version is 2.0.3.0 ly i suppose,i ve updated it today

image

logs : log-20240625T105016.txt

veler commented 1 week ago

Thanks! I do see an error in the logs, but it's unrelated to the paste command. Does the Paste button work? image

ssrahul96 commented 1 week ago

yes, the error is irrelevant,

The Paste button is working fine.

joshradics commented 1 week ago

Updated to the newest version and still getting the same issue too. On OSX ARM64 installed with homebrew. The behaviour is inconsistent too - sometimes I can use the text fields, sometimes I cannot. CMD + V doesn't seem to work in any case. Log file attached in case it's useful, but it doesn't seem to trigger any errors when doing this.

log-20240628T103751.txt