Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Not support lua5.4.7? #85

Open
3 tasks done
basheewang opened this issue Jul 18, 2024 · 7 comments
Open
3 tasks done

bug: Not support lua5.4.7? #85

basheewang opened this issue Jul 18, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@basheewang
Copy link

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.11.0-dev-462+g167d0e5a6

Operating system/version

Arch Linux

Describe the bug

When install with lazy, the error as picture.
7-18-2024 1-37-22 PM

Does this plugin only support lua 5.1 to install?

Steps To Reproduce

Just paste the install instruction lazy cod in my init.lua, then use Lazy sync, the error pop out.

Expected Behavior

Hope to support newer lua version to install.

@basheewang basheewang added the bug Something isn't working label Jul 18, 2024
@SuperBo
Copy link
Owner

SuperBo commented Jul 25, 2024

@basheewang, lemme check this. In theory, I defined lua>=5.1 in spec. Can you share your lazy version?

@basheewang
Copy link
Author

@basheewang, lemme check this. In theory, I defined lua>=5.1 in spec. Can you share your lazy version?

7-26-2024 1-03-25 PM

BTW, I am using NvChad2.5 config.

@SuperBo
Copy link
Owner

SuperBo commented Jul 31, 2024

@basheewang, I think you need to install exactly lua 5.1 for lazy.nvim to work (as warning show lua version 5.1 is needed).

You can look at this issue also, #82.

@rodhash
Copy link

rodhash commented Nov 10, 2024

Lua 5.1 is no longer available:

 $  brew install [email protected]
Error: [email protected] has been disabled because it is deprecated upstream! It was disabled on 2024-02-16.

Tried many ways to install this plugin but no luck so far (with rocks). It only worked after completely disabling rocks.

@SuperBo
Copy link
Owner

SuperBo commented Nov 11, 2024

@rodhash, Hi bro, can you share another plugin that you installed successfully with rocks?

@rodhash
Copy link

rodhash commented Nov 11, 2024

I had a few:

  {
    "vhyrro/luarocks.nvim",
    -- priority = 1000, -- We'd like this plugin to load first out of the rest
    lazy = true,
    event = "VeryLazy",
    config = true, -- This automatically runs `require("luarocks-nvim").setup()`
    opts = {
      rocks = { "fzy", "pathlib.nvim ~> 1.0", "rest.nvim", "neorg", "tree-sitter-http", "lua-curl", "nvim-nio", "mimetypes", "xml2lua" }, -- specifies a list of rocks to install
      -- luarocks_build_args = { "--with-lua=/my/path" }, -- extra options to pass to luarocks's configuration script
    },

    -- config = function ()
    --   require("luarocks-nvim").setup({})
    -- end
  },

But now and then rocks becomes a pain so yesterday I disabled it for good and installing only with Lazy worked fine.

@SuperBo
Copy link
Owner

SuperBo commented Nov 11, 2024

@rodhash, I used asdf-lua to manage my lua versions instead of brew. You can give it try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants