Skip to content

Unable to paste into terminal using Ctrl + V #1113

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

Closed
matthewpwatkins opened this issue Oct 25, 2019 · 2 comments
Closed

Unable to paste into terminal using Ctrl + V #1113

matthewpwatkins opened this issue Oct 25, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@matthewpwatkins
Copy link

matthewpwatkins commented Oct 25, 2019

  • code-server version: v10.15.1
  • OS Version: Red Hat Enterprise Linux Server release 5.3 (Tikanga)

Description

I just upgraded my installed code-server instance today. It used to be that I could Ctrl+C and Ctrl+V to copy/paste on the terminal. Now when I try to copy with Ctrl+C, the app throws a JS error:

workbench.web.api.js:2474 TypeError: Cannot read property 'writeText' of undefined
    at Proxy.writeText (workbench.web.api.js:2803)
    at e.copySelection (workbench.web.api.js:3905)
    at async P.run (workbench.web.api.js:5720)
    at async Object.triggerAndDisposeAction (workbench.web.api.js:2499)
    at :9000/async http:/{my-ip}:9000/static-e7945bea94b5c35f2c3475a9344212c900d4adb1/out/vs/workbench/workbench.web.api.js:2499

Likewise when I try to paste, I get the following:

workbench.web.api.js:2474 TypeError: Cannot read property 'readText' of undefined
    at Proxy.readText (workbench.web.api.js:2803)
    at e.paste (workbench.web.api.js:3907)
    at re.run (workbench.web.api.js:5729)
    at Object.triggerAndDisposeAction (workbench.web.api.js:2499)
    at :9000/async http:/{my-ip}/static-e7945bea94b5c35f2c3475a9344212c900d4adb1/out/vs/workbench/workbench.web.api.js:2499

It looks like Ctrl+Insert and Shift+Insert still work for copying/pasting, though, so it's not the end of the world.

On the previous version, I noticed that Chrome showed a clipboard icon indicating that the app has access to the clipboard. I do not see it in this install.

Steps to Reproduce

  1. Try to copy some text from the terminal with Ctrl+C
  2. Try to paste some text to the terminal with Ctrl+V
@matthewpwatkins matthewpwatkins added the bug Something isn't working label Oct 25, 2019
@matthewpwatkins
Copy link
Author

Side note, may be relevant: I just got an error trying to paste into the editor window as well: "command 'editor.action.clipboardPasteAction' not found"

@sr229
Copy link
Contributor

sr229 commented Oct 26, 2019

Duplicate of #237

@sr229 sr229 marked this as a duplicate of #237 Oct 26, 2019
@sr229 sr229 closed this as completed Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants