Skip to content

bug: Lazy Health needs to add .bat to detect luarocks on Windows #1902

@frostspanner

Description

@frostspanner

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.3

Operating system/version

Windows 11

Describe the bug

On my computer Lazy health returns

Image

even though Luarocks is installed and on path.

If I change

ok = Health.have("luarocks", opts)
to pass "luarocks.bat" to Health.have() following
if Util.is_win then
luarocks = luarocks .. ".bat"
Lazy correctly detects the installed version.

Steps To Reproduce

  1. Install luarocks on Windows
  2. Run neovim using minimal repro below
  3. Run Lazy health

Expected Behavior

Lazy health detects installed Luarocks

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions