-
Notifications
You must be signed in to change notification settings - Fork 8
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
Clipboard error : Target STRING not available #16
Comments
And yes, I'm using |
What version of neovim? |
Hi @svermeulen, thank you for looking into this! I use Neovim v0.4.3 However, I think I've made some mistake. I claimed |
I can't seem to reproduce this. I am on osx though so maybe it doesn't appear there. I am guessing that it occurs during the |
I've done more googling on the error and I think it's exclusively related to xclip (which is for interacting with the clipboard on Linux). So I doubt you'll encounter this on MacOS either. The issues I found don't relate to neovim/vim, but arise with similar interaction with the clipboard. If you don't mind, I'll keep this issue open for more try'n'error feedback. I'll try out your suggested fix this weekend. |
Seems like xclip is indeed the issue, removing it and using xsel fixed it for me but I have a xclip dependency. nvim tries to use xclip before xsel
if you need to have both xsel and xclip AND you're using nvim. This snippet works with |
Instead of xclip. See svermeulen/vim-yoink#16 (comment).
fixes "clipboard: error: Error: target STRING not available" svermeulen/vim-yoink#16
I haven't tried @yigitsever's solution, even several people report it fixed the issue for them. The main reasons are that I did not want to have xsel installed along xclip as well as the error wasn't that much an issue for me given it only happened sporadic. However, after upgrading neovim I started encountering the error as reported in #28. I think this is related to this issue... previously it just "used" to issue the small error |
Hi,
I've just started using the plugin. When starting neovim, I get the error
Clipboard error : Target STRING not available
. This only affects neovim, but not vim.Googling around, I found neovim/neovim#2642 (comment), which relates to logic of monitoring the system's clipboard via yankrinkg.
And indeed, setting
let g:yoinkSyncSystemClipboardOnFocus = 0
prevents this error.Is there a way of having this fixed, while retaining the monitoring of the system's clipboard?
The text was updated successfully, but these errors were encountered: