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

luarocks failed to install toml-edit #22

Closed
jinzhongjia opened this issue Nov 1, 2023 · 3 comments
Closed

luarocks failed to install toml-edit #22

jinzhongjia opened this issue Nov 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jinzhongjia
Copy link
Contributor

luarocks will fail to install toml-edit.
Try to install it through the command line, the following prompt appears:
image

Neovim version: nightly

Try to run luarocks config , it outpus:

5.4 outputs: https://gist.github.com/jinzhongjia/0b1acc55bebd5a56a7e17f9a9df6f53e
with --lua-version=5.1 outputs: https://gist.github.com/jinzhongjia/bcfbda053813f8e2e8e3236e9b811cf8

@jinzhongjia
Copy link
Contributor Author

Acorrding to this, masybe it is a bug of luarocks

@NTBBloodbath NTBBloodbath added the bug Something isn't working label Nov 1, 2023
@mrcjkb
Copy link
Member

mrcjkb commented Nov 21, 2023

We just encountered the same error in our luarocks CD workflow.

The workaround was to have either a local or global installation of luarocks-build-rust-mlua (luarocks install --local luarocks-build-rust-mlua).

It appears that luarocks can't find it if it is installed using --tree <some-path> as a dependency (perhaps another luarocks bug?).

For us, I think the best solutions will be

  1. Provide toml-edit as a binary rock, which we can install using --server <manifest-uri>.
  2. An upstream fix.

@NTBBloodbath
Copy link
Member

I will close this issue because we now have binary rocks (aka bundled dependencies) in another public repository that rocks.nvim uses to install its dependencies and it is no longer necessary to compile anything.

Please reopen this issue if for some reason the problem still persists using the rocks.nvim installer (although I'm pretty sure you won't have to face it again!).

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