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

[Bug] Rapid pasting raises a Canceled: Canceled exception #4776

Open
1 of 2 tasks
OfekShilon opened this issue Dec 7, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] Rapid pasting raises a Canceled: Canceled exception #4776

OfekShilon opened this issue Dec 7, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@OfekShilon
Copy link
Contributor

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

It is reproducible in monaco playground, but the actual monaco code is immaterial. You can use the default https://microsoft.github.io/monaco-editor/playground.html?source=v0.52.0#example-creating-the-editor-hello-world

Monaco Editor Playground Code

Reproduction Steps

At the preview pane, copy some text with Ctrl+C and then repeatedly paste by holding down Ctrl+V:

Image

Actual (Problematic) Behavior

Don't mind the clipboard-CORS permission issue. The monaco related problem is evident in the stack:

async.ts:28  Uncaught (in promise) Canceled: Canceled
    at UniqueContainer.value (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:51766:24)
    at Emitter._deliver (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:12271:26)
    at Emitter._deliverQueue (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:12282:22)
    at Emitter.fire (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:12305:22)
    at MutableToken.cancel (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:12686:35)
    at CancellationTokenSource.cancel (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:12733:29)
    at Object.cancel (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:51780:24)
    at CopyPasteController.handlePaste (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:174859:42)
    at HTMLDivElement.<anonymous> (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/dev/vs/editor/editor.main.js:174757:91)

Expected Behavior

No exception.

Additional Context

This exception is often encountered in compiler-explorer sentry logs. Currently reported here: compiler-explorer/compiler-explorer#7181

@rzhao271 rzhao271 added the bug Issue identified by VS Code Team member as probable bug label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants