Skip to content
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

function health#report_ok() does not exist #93

Closed
TamaMcGlinn opened this issue Jun 4, 2024 · 1 comment · Fixed by #94
Closed

function health#report_ok() does not exist #93

TamaMcGlinn opened this issue Jun 4, 2024 · 1 comment · Fixed by #94

Comments

@TamaMcGlinn
Copy link

I tried :checkhealth today and got this error:

E5009: Invalid $VIMRUNTIME: /tmp/.mount_nvimX6KAYA/usr/share/nvim/runtime                                                                                                                                     
Error executing lua: function health#floaterm#check[1]..<SNR>391_check_common, line 1: Vim(call):E117: Unknown function: health#report_start                                                                         
stack traceback:                                                                                                                                                                                                     
        [C]: in function 'call'                                                                                                                                                                                      
        ...unt_nvimX6KAYA/usr/share/nvim/runtime/lua/vim/health.lua:366: in function '_check'                                                                                                                        
        [string "<nvim>"]:1: in main chunk                           

I see in autoload/health/gitmessenger.vim this line:

call health#report_ok('+job is available to execute Git command')

Is health#report_ok part of a plugin I should have installed as a dependency?

@woeps
Copy link
Contributor

woeps commented Aug 20, 2024

I get the same error message with neovim 0.11.

It seems like the health#report_ok api was deprecated in nvim 0.10 and vim.health.ok should be used for neovim >0.10.

woeps added a commit to woeps/git-messenger.vim that referenced this issue Aug 20, 2024
woeps added a commit to woeps/git-messenger.vim that referenced this issue Aug 25, 2024
@rhysd rhysd closed this as completed in #94 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants