Skip to content

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

Open
@kenzieschmoll

Description

@kenzieschmoll

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2devtools-integrationRelated to the integration with Dart DevTools

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions