aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/health/health.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-09-19 06:34:23 -0700
committerGitHub <noreply@github.com>2024-09-19 06:34:23 -0700
commit84e85aeb10ae51b03392fdee12e14c9699c99e66 (patch)
tree2677fcb13ea8c168036e7070b5cce80afa99f4e5 /runtime/lua/vim/health/health.lua
parent7dbbaaec3fae62667b273c4c2d362bee91316083 (diff)
downloadrneovim-84e85aeb10ae51b03392fdee12e14c9699c99e66.tar.gz
rneovim-84e85aeb10ae51b03392fdee12e14c9699c99e66.tar.bz2
rneovim-84e85aeb10ae51b03392fdee12e14c9699c99e66.zip
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 (limited to 'runtime/lua/vim/health/health.lua')
-rw-r--r--runtime/lua/vim/health/health.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua
index 35b3ec17c4..d226f35f9a 100644
--- 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