folke / lazy.nvim

💤 A modern plugin manager for Neovim
https://lazy.folke.io/
Apache License 2.0
14.32k stars 344 forks source link

bug: lazy/luarocks doesn't recognize newer lua version #1682

Closed realguse closed 2 months ago

realguse commented 2 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.10.1

Operating system/version

macOS 14.6

Describe the bug

Lazy doesn't recognize newer version of lua and throws a warning when doing :Lazy health or :checkhealth

Steps To Reproduce

Install nvim with lazy and lua installed, then run :Lazy health, now you should see a warning like this

https://github.com/user-attachments/assets/c5b701cf-2fdf-4331-a944-a29eb4e55c39

Expected Behavior

Lazy should not throw the warning and just accept the newer lua version.

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
  },
})
max397574 commented 2 months ago

that's excepted that's because neovim uses luajit which is a version of 5.1 newer version have some different things and therefor don't work

:h lua-intro, :h lua-compat

realguse commented 2 months ago

ok, thanks