-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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
Copy-Paste Broken #13366
Comments
also having this issue, same reproduce steps, same details: VSCode Version: 1.5.3 |
Same issue on windows. Does not happen all the time though, and pressing ctrl +c multiple times will eventually copy the text. (I have confirmed the issue with a second keyboard, since I first thought it was my keyboard that started giving up. Also, the issue is isolated to VS Code - copy paste works correctly outside the application) VSCode Version: 1.6.1 Edit: The cause of my copy-paste issue was an extension called "SirTobi.code-clip-ring", after uninstalling it I have not had any issues with copy-paste. Being the only one with windows in this thread having the issue, maybe concludes that it's something related to OS X + VS Code? |
Same issue for |
An interesting thing, it is only broken when I open using the command line. I created a symlink
When I use the symlink to open a folder or a file, the copy/paste doesn't work. VSCode Version: 1.6.1 |
This might be related to electron/electron#7663. I noticed the same issue with our custom Electron app, which is running on electron@1.4.0 at the moment. |
I can reproduce the exact issue as described by @pablolmiranda. Copy and paste doesn't work when opening VSCode via command line.
VSCode 1.6.1 |
@bpasero @joaomoreno Can you please also try this? |
Works fine for me. Does it reproduce when running with |
I can consistently reproduce the problem by
Interestingly, if VS Code is already open/running, I can repeat the steps On 27 October 2016 at 6:10:41 pm, João Moreno (notifications@github.com) Works fine for me. Does it reproduce when running with --disable-extensions? — |
@rpassis Does it work to copy/paste out of a native filed such as the find input or is copy/paste flaky only for the editor ? |
Only the editor is affected. Sent from my iPhone
|
To validate if this is electron/electron#7663 can you please try the following trick: Bind two more keybindings to copy (only temporarily)Here I am on Windows, but you get the drill -- cmd+c, cmd+f, cmd+d (Preferences > Keyboard Shortcuts)
Try to copy with any of the keybindings. |
Unfortunately I get the same behaviour with custom keybindings. I've made a quick screencast to demonstrate the problem in case it helps https://www.youtube.com/watch?v=r-eHgjZHQk8 Thanks for following up! |
I just ran into this issue. I had closed vscode completely then opened it via console. After reading this, I closed it again, and opened via spotlight, and then opened my project from the console again, and it works again. |
@rpassis Thank you for the screencast. I'm sorry I'm honestly stumped by this and cannot find a reasonable explanation why this would be happening. It also doesn't help that I'm not a mac user. I know on the mac you can close all windows of an app and the app still runs in a window-less fashion. Is it that you entirely kill the app between the two tests (I only see the apple logo flashing, indicating that a keybinding in there got triggered). On my side, I have the exact same code to deal with copying or pasting, regardless how VSCode is launched and regardless of OS. (In fact the same code runs in any browser at https://microsoft.github.io/monaco-editor/) I can only bring in the mac experts on our team and hope they know something about it, but I don't think this is an issue in our code... |
I never saw this and I do copy/paste ALL the time... |
@rpassis Can you show me your
|
Thanks Joao. A clean shell didn’t solve the problem but it made me look into a couple of Perhaps @imeredith and @pablolmiranda could confirm whether they use tmux Thanks all, |
In addition to the above, I also noticed that two instances of VS Code are running in parallel when I start one via my tmux session and another via a separate clean shell session
You can also see that on the Mac Dock (see two VS Code icons on the right hand side of the image below). |
Good, we're getting somewhere. 👍 I still can't reproduce when using tmux, though. What's the output of |
This bug is back. In the previous release the bug was fixed, but since upgrading to version 1.11.2 it has re-surfaced. If I re-launch VS Code a few times sometimes it will start working again though. macOS: 10.12.4 Note that I use US DVORAK keyboard layout. |
use cmd+c to copy / cmd+v to paste is the same with top I can't copy/paste anything in terminal area or file manager area even using cmd+f to search has the same problem macOS:10.12.4 |
For me cmd+c and cmd+v don't work only in the Search field of the Search left-side panel. vscode 1.11.2 |
Copy paste is broken when opening from command line inside tmux session & launchpad. macOS Sierra 10.12.4 (when opening from command line outside tmux session it does work) |
macOS Sierra 10.12.5
|
It was working for me to open outside of tmux. Now, the problem happens anytime I open from the console/shell. 1.12.2 on macOS. The only workaround is to open from Applications folder / launcher but then my env paths are not respected and autocomplete/jump doesn't work. |
Same as @payneio . And thank you for the walk around
|
For those who run |
Seems to be fixed after installing
https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard#quick-summary |
@gorjuspixels's comments / Chris Johnsen's pasteboard code above fixed this issue for me (specifically, copy and paste not working, and being unable to maximize, when starting visual studio code from the command prompt with 'code .'). Thank you! |
On 1.14.1 version Copy/Paste is broken. |
Copy/paste works when launching VS Code from tmux session with plugin I have exact same setup on another system, BUT without tmux-yank/reattach-to-user-namespace and copy/paste in VS Code when launching from tmux terminal is still broken. |
Had the same problem just left clicked and copy and left click past worked for me. |
This still occasionally happens to me. Solution has always been restarting it. |
Why is this closed? I tried to copying from vscode the bash terminal is broken when over a certain length. |
Always happens to me when starting code from terminal. 😢 |
Still broken. Version 1.16.1, using RHEL 7.4. Update: this problem looked a lot like trying to copy/paste using CTRL+C / CTRL+V in a VIM editor (obviously won't work). Then I remembered I had the VIM Emulator extension installed... bingo. Uninstalling this extensions solved my problem. |
Can confirm this issue is still happening on 1.16.1. Seems to break whether I launch it from a tmux session or from a plain terminal session on OS X. |
Confirming this is a thing, launching from within a: iTerm2 -> tmux -> vim (run |
I also see this as being broken when I launch VSCode from within a tmux bash session via Any ideas or ETA for a fix? Thanks! :-) |
Has happened to me several times. Pressing Ctrl-C causes ^C to appear at the command prompt. BTW, I found that after leaving Code and going to another application, then coming back to Code, copy started working again. I'll see if I can find a consistent repro. The bug is annoying when the text I need to copy is hard to reproduce... |
Steps to Reproduce:
Command
+C
or the Edit menu)The text was updated successfully, but these errors were encountered: