nvim-lua / plenary.nvim

plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
MIT License
2.66k stars 280 forks source link

Plenary build failed with lazy.nvim #615

Open srijan-raghavula opened 1 month ago

srijan-raghavula commented 1 month ago

The full description:

  Failed (1)
    ● plenary 0.12ms  start
        `lua` version `5.1` needed, but found `Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio`
        `lua5.1` or `lua` or `lua-5.1` version `5.1` not installed

        This plugin requires `luarocks`. Try one of the following:
         - fix your `luarocks` installation
         - enable `hererocks` with `opts.rocks.hererocks = true`
         - disable `luarocks` support completely with `opts.rocks.enabled = false`

        Will try building anyway, but will likely fail...

        --------------------------------------------------------------------------------

        Error: Could not find Lua 5.1 in PATH.
        Please set your Lua interpreter with:

           luarocks --lua-version=5.1 --local config variables.LUA </path/lua>
        Failed installing plenary.nvim with `luarocks`.

        --------------------------------------------------------------------------------

        Trying to build from source.
        Error: Could not find Lua 5.1 in PATH.
        Please set your Lua interpreter with:

           luarocks --lua-version=5.1 --local config variables.LUA </path/lua>
shreezn@shreezn-pc:~$ luarocks --version
/usr/local/bin/luarocks 3.11.1
LuaRocks main command-line interface
shreezn@shreezn-pc:~$ lua -v
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio

I made a fresh installation of neovim and cloned into this config. After reading what lazy has displayed, I've also tried installing lua5.1-dev which also didn't work.

dhrupadb commented 1 month ago

Same issue with Lua 5.4.6. I'm able to replicate the issue using luarocks alone

➜  luarocks --lua-version 5.1 install luassert
Password:
Warning: Failed searching manifest: Failed downloading https://luarocks.org/manifest-5.1 - failed downloading https://luarocks.org/manifest-5.1
Warning: Failed searching manifest: Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1 - failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.1
Warning: Failed searching manifest: Failed downloading https://loadk.com/luarocks/manifest-5.1 - failed downloading https://loadk.com/luarocks/manifest-5.1
KitBolourchi commented 3 weeks ago

I am having the same issue and trying to figure it out.

lucasczpnk commented 3 weeks ago

Same here

PiquelChips commented 2 weeks ago

I fixed this by intalling the lua51 pacman package. You might wanna try the equivalent of your package manager