Closed mehalter closed 1 month ago
I don't get that error.
What does :checkhealth vim.provider
show?
provider.clipboard: require("provider.clipboard.health").check()
Clipboard (optional) ~
- OK Clipboard tool found: xclip
Here is a recording of the occurrences: https://asciinema.org/a/9rJ5caRiafJol3wwDXV9IKxKm
In this recording each time it happened. It seems like every once in a while it will not display it, then go on a few restarts with it not happening, then kick back up again
ah I see I'm a moment too slow! Thanks so much for taking a look! Based on the code you just pushed it seems like that's probably the problem. A race condition of some kind which would be the reason it was not happening every single time in my experience.
Thank you again for your ongoing support!
I just checked the Neovim source code and unfortunately that warning can't be prevented. It happens when the clipboard tool doesn't return a value for the register. On wayland, this is the case after restart when the clipboard is still empty.
Interesting, there must be something similar with Xorg as well since I'm not using Wayland. Thanks for the insight and taking a look!
But https://github.com/folke/which-key.nvim/commit/27e47163165fee8e45b43d340db9335001403d2f should at least prevent showing that warning at startup.
It may still be shown when you do "
with an empty clipboard.
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0 (github release)
Operating system/version
Arch Linux
Describe the bug
On startup I get an error:
clipboard: error: Error: target STRING not available
Steps To Reproduce
nvim -u repro.lua
Expected Behavior
No error on startup
Health
Log
Repro