Open Flutter DevTools or Flutter DevTools Extensions tool window
Open the settings dialog (gear icon in bottom right of the DevTools view)
Click the "Copy logs" button.
Expected result: logs are copied to clipboard.
Actual result: an exception is thrown.
copy is not successful NotAllowedError: Failed to execute 'writeText' on 'Clipboard': Write permission denied.
Copy failed. This may be as a result of a known bug in VS Code. See https://github.com/Dart-Code/Dart-Code/issues/4540 for more information. Now attempting to use a fallback method of copying the that is a workaround for VS Code only.
When text is manually selected using the mouse and copied using cmd+c, the copy is successful. An easy way to test this is to open the About DevTools menu (question mark icon in the bottom right of the DevTools view) and try to copy the version text.
Repro steps:
Expected result: logs are copied to clipboard. Actual result: an exception is thrown.
When text is manually selected using the mouse and copied using cmd+c, the copy is successful. An easy way to test this is to open the About DevTools menu (question mark icon in the bottom right of the DevTools view) and try to copy the version text.
@helin24