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

Plenary build failed with lazy.nvim #615

Open
srijan-raghavula opened this issue Aug 10, 2024 · 7 comments
Open

Plenary build failed with lazy.nvim #615

srijan-raghavula opened this issue Aug 10, 2024 · 7 comments

Comments

@srijan-raghavula
Copy link

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
Copy link

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
Copy link

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

@lucasczpnk
Copy link

Same here

@PiquelChips
Copy link

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

@ciano1000
Copy link

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

@Conni2461
Copy link
Collaborator

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 #597 (comment)

@P1R
Copy link

P1R commented Sep 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants