windmill icon indicating copy to clipboard operation
windmill copied to clipboard

bug: VSCode. Couldn't copy to clipboard

Open mmospanenko opened this issue 1 year ago • 4 comments

Describe the bug

MacOS, VScode. Trying to copy using icon - error message: Couldn't copy to clipboard

Also can't select and copy as regular text from this window.

To reproduce

  1. Go to VScode run script (CMD+Enter)
  2. Click on Copy to Clipboard
  3. See an error popup "Couldn't copy to clipboard"

Expected behavior

Expected text should be in clipboard

Screenshots

image image

Browser information

Version: 1.89.0 (Universal) Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd Date: 2024-05-01T02:10:10.196Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin x64 22.6.0

Application version

Windmill CE v1.323.6

Additional Context

VSCode plugin windmill v0.2.11

mmospanenko avatar May 05 '24 20:05 mmospanenko

Hi, it happens when the content of the result is not serializable, what kind of data does your script return ?

fatonramadani avatar May 06 '24 09:05 fatonramadani

json from Notion API. I can't even select any text from this side panel or any other response. Seems something related OS and vscode process, plugin permissions...

mmospanenko avatar May 06 '24 12:05 mmospanenko

It's not really a windmill specific issue but a vscode limitation: https://github.com/microsoft/vscode/issues/68799

There are however workaround using iframe message passing that we can likely use to improve this

rubenfiszel avatar May 06 '24 13:05 rubenfiszel

will be great to have fix, because it almost unusable in vscode without clipboard...

mmospanenko avatar Jul 11 '24 14:07 mmospanenko