ITADN

Rocks.nvim install - checkhealth Hotpot Module Searcher index mismatch error

#142ClosedCarbonChauvinist 创建于 2024-09-18
Fresh install into clean nvim instance using Rocks.nvim results in error when running checkhealth. As far as I can tell does not cause any issues with hotpot besides the error itself? ``` hotpot: require("hotpot.health").check() Hotpot Cache Data ~ - Cache root path: /home/ghost/.cache/hotpot/hotpot - Cache size: 1 files, 4kb Hotpot Log ~ - Log path: /home/ghost/.local/state/hotpot/hotpot.log - Log size: 0 Hotpot Module Searcher ~ - ERROR package.loader index: 3, requires: 2 ``` This happens on my main config, but I started a new NVIM_APPNAME instance to reproduce this with fresh/minimal config as shown below: <details> <summary>init.lua</summary> ``` do local install_location = vim.fs.joinpath(vim.fn.stdpath("data"), "rocks") local rocks_config = { ["rocks-path"] = vim.fs.normalize(install_location) } vim.g.rocks_nvim = rocks_config local luarocks_path = { vim.fs.joinpath(rocks_config["rocks-path"], "share", "lua", "5.1", "?.lua"), vim.fs.joinpath(rocks_config["rocks-path"], "share", "lua", "5.1", "?", "init.lua"), } package.path = (package.path .. ";" .. table.concat(luarocks_path, ";")) local luarocks_cpath = { vim.fs.joinpath(rocks_config["rocks-path"], "lib", "lua", "5.1", "?.so"), vim.fs.joinpath(rocks_config["rocks-path"], "lib64", "lua", "5.1", "?.so"), } package.cpath = (package.cpath .. ";" .. table.concat(luarocks_cpath, ";")) vim.opt.runtimepath:append( vim.fs.joinpath(rocks_config["rocks-path"], "lib", "luarocks", "rocks-5.1", "rocks.nvim", "*") ) end if not pcall(require, "rocks") then local rocks_location = vim.fs.joinpath(vim.fn.stdpath("cache"), "rocks.nvim") if not vim.uv.fs_stat(rocks_location) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/nvim-neorocks/rocks.nvim", rocks_location, }) else end assert((vim.v.shell_error == 0), "rocks.nvim installation failed. Try exiting and re-entering Neovim!") vim.cmd.source(vim.fs.joinpath(rocks_location, "bootstrap.lua")) vim.fn.delete(rocks_location, "rf") else end require("hotpot") ``` </details> <details> <summary>rocks.toml</summary> ``` [rocks] [plugins] "rocks.nvim" = "2.40.1" "hotpot.nvim" = "0.14.5" ``` </details>
关闭于 2024-09-19 3 条评论