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

Copying text from an embedded DevTools view does not work #7667

Open
kenzieschmoll opened this issue Sep 26, 2024 · 0 comments
Open

Copying text from an embedded DevTools view does not work #7667

kenzieschmoll opened this issue Sep 26, 2024 · 0 comments
Labels
devtools-integration Related to the integration with Dart DevTools

Comments

@kenzieschmoll
Copy link
Member

kenzieschmoll commented Sep 26, 2024

Repro steps:

  1. Open Flutter DevTools or Flutter DevTools Extensions tool window
  2. Open the settings dialog (gear icon in bottom right of the DevTools view)
  3. 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.

@helin24

@kenzieschmoll kenzieschmoll added the devtools-integration Related to the integration with Dart DevTools label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools-integration Related to the integration with Dart DevTools
Projects
None yet
Development

No branches or pull requests

1 participant