clipboard-image.nvim icon indicating copy to clipboard operation
clipboard-image.nvim copied to clipboard

Missing parentheses Error

Open Riku-programming opened this issue 2 years ago • 4 comments

I installed the plugin and tried to run Run :checkhealth clipboard-image but got the following error.

  health#clipboard-image#check
  ========================================================================
    - ERROR: Failed to run healthcheck for "clipboard-image" plugin. Exception:
       function health#check, line 21
       Vim(call):E107: Missing parentheses '(': health#clipboard-image#check()

My environment is below.

  • NVIM v0.5.1
  • macOS Monterey 12.6

It's in Japanese, but I'll post a picture. image

Do you have any solutions? thank you

Riku-programming avatar Nov 27 '22 10:11 Riku-programming

Hmm weird 🤔. I'll try to take a look

ekickx avatar Nov 27 '22 13:11 ekickx

Oh okay so I create health check with health.lua file but neovim support Lua healthchecks since v0.6 https://github.com/neovim/neovim/pull/15259. So that's the problem.

This plugin should actually work on v0.5 so maybe I should make separate healthcheck in vimscript

ekickx avatar Dec 01 '22 00:12 ekickx

Sorry for the late reply. I see, thank you for your research.

It worked fine on my other device (NVIM v0.8.0), so I will raise the vim version on the 0.5.1 device to handle it.

Riku-programming avatar Dec 07 '22 17:12 Riku-programming

Hello, I'm receiving a similar error. Using (NVIM v0.9.0 nightly), macOS Ventura 13.2.1 image

I have fixed the error here: #48. I've changed the health.lua file to reference the proper check health functions, as documented here: https://neovim.io/doc/user/pi_health.html#health-dev.

Checkhealth and plugin now work great. image

dfendr avatar Mar 16 '23 15:03 dfendr