flutter / flutter/flutter-intellij

Copying text from an embedded DevTools view does not work

Open
#7,667 0 comments 0 reactions 0 assignees View on GitHub
devtools-integration P2
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.