plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

Plenary build failed with lazy.nvim

Open srijan-raghavula opened this issue 1 year ago • 7 comments

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.

srijan-raghavula avatar Aug 10 '24 16:08 srijan-raghavula

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


dhrupadb avatar Aug 12 '24 22:08 dhrupadb

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

KitBolourchi avatar Aug 19 '24 19:08 KitBolourchi

Same here

lucasczpnk avatar Aug 20 '24 21:08 lucasczpnk

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

PiquelChips avatar Sep 01 '24 09:09 PiquelChips

Also having this issue, anyone make any progress in resolving it?

ciano1000 avatar Sep 16 '24 15:09 ciano1000

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

Conni2461 avatar Sep 16 '24 16:09 Conni2461

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.

P1R avatar Sep 17 '24 23:09 P1R