Plenary build failed with lazy.nvim
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.
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
I am having the same issue and trying to figure it out.
Same here
I fixed this by intalling the lua51 pacman package. You might wanna try the equivalent of your package manager
Also having this issue, anyone make any progress in resolving it?
not sure but if you guys dont want to install plenary.nvim with luarocks i think you can just disable luarocks support in lazy.nvim. see also https://github.com/nvim-lua/plenary.nvim/issues/597#issuecomment-2213486886
I think it is a big error to force by DEFAULT to use an external package, specially neovim usually you can use them out of the box. So I guess here is when convienence becomes complex and unconvinient.