neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 84e85aeb10ae51b03392fdee12e14c9699c99e66
parent 7dbbaaec3fae62667b273c4c2d362bee91316083
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Thu, 19 Sep 2024 06:34:23 -0700

fix(health): check more "old" files #30421

Problem:

    Node.js provider (optional) ~
    - ERROR Failed to run healthcheck for "provider.node" plugin. Exception:
      …/runtime/lua/provider/node/health.lua:9: attempt to call field 'provider_disabled' (a nil value)

    Perl provider (optional) ~
    - ERROR Failed to run healthcheck for "provider.perl" plugin. Exception:
      …/runtime/lua/provider/perl/health.lua:8: attempt to call field 'provider_disabled' (a nil value)

    Python 3 provider (optional) ~
    - ERROR Failed to run healthcheck for "provider.python" plugin. Exception:
      …/runtime/lua/provider/python/health.lua:226: attempt to call field 'provider_disabled' (a nil value)

    Ruby provider (optional) ~
    - ERROR Failed to run healthcheck for "provider.ruby" plugin. Exception:
      …/runtime/lua/provider/ruby/health.lua:9: attempt to call field 'provider_disabled' (a nil value)

Solution:
Add these files to the runtime sanity check.

fix #29302
Diffstat:
Mruntime/lua/vim/health/health.lua | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua @@ -11,10 +11,14 @@ local function check_runtime() health.start('Runtime') -- Files from an old installation. local bad_files = { - ['plugin/health.vim'] = false, ['autoload/health/nvim.vim'] = false, ['autoload/health/provider.vim'] = false, ['autoload/man.vim'] = false, + ['lua/provider/node/health.lua'] = false, + ['lua/provider/perl/health.lua'] = false, + ['lua/provider/python/health.lua'] = false, + ['lua/provider/ruby/health.lua'] = false, + ['plugin/health.vim'] = false, ['plugin/man.vim'] = false, ['queries/help/highlights.scm'] = false, ['queries/help/injections.scm'] = false, @@ -39,7 +43,7 @@ local function check_runtime() 'Found old files in $VIMRUNTIME (this can cause weird behavior):\n%s', bad_files_msg ), - { 'Delete the $VIMRUNTIME directory (or uninstall Nvim), then reinstall Nvim.' } + { 'Delete the $VIMRUNTIME directory, then reinstall Nvim.' } ) end end