Comments (18)
I tried this, https://aur.archlinux.org/packages/lua-luarocks-build-rust-mlua
it works
from rocks.nvim.
But when I specify lua-version is 5.1, its output is 5.1
from rocks.nvim.
here is 5.4 output https://gist.github.com/jinzhongjia/0b1acc55bebd5a56a7e17f9a9df6f53e
5.1 output https://gist.github.com/jinzhongjia/bcfbda053813f8e2e8e3236e9b811cf8
from rocks.nvim.
Honestly, I have no idea now. Everything looks correct and I took a look at the luarocks code that has to do with the configuration to see if I found something but everything is fine.
There are some issue reports with the same dependency in the luarocks repository with other projects but unfortunately none have had any response with a proper solution from the luarocks maintainers, here is an example of them and in this other one, even though it is another use case, the same thing happens and ultimately, it seems to be an internal luarocks bug with their build system in some edge cases like this one where a custom builder is being used for the dependencies 😥
from rocks.nvim.
ok, I will open a new issue
from rocks.nvim.
Which version of Neovim are you using? This was written for Neovim 0.10 (nightly).
luarocks.cli
returns the result of its underlying call to vim.system
, which is a vim.SystemObject
. A vim.SystemObject
has a :wait()
function.
Anyway, the install process is going to change, and the bootstrap_install
will be removed.
from rocks.nvim.
I am using nightly, but it seems that if the network is not good, the installation of dependencies will fail.
from rocks.nvim.
Everything is normal now. By the way, the installation method of readme has not been completed yet, right?
I am currently using a method similar to lazy to install it.
from rocks.nvim.
I found that luarocks will fail to install toml-edit.
When I try to install it through the command line, the following prompt appears:
from rocks.nvim.
Yes, this is still very much WIP 😅
It looks like you have lua 5.4 installed, and it's trying to find toml-edit for that version.
Neovim uses luaJIT (with lua 5.1 compatibility), so you'll need one of those lua versions.
Which platform are you on?
from rocks.nvim.
I work in archlinux under wsl2, I checked the official library of archlinux and the dependency of luarocks is lua5.4
from rocks.nvim.
maybe I can install this? https://aur.archlinux.org/packages/lua51-luarocks-build-rust-mlua
from rocks.nvim.
maybe I can install this? https://aur.archlinux.org/packages/lua51-luarocks-build-rust-mlua
no effect
from rocks.nvim.
I work in archlinux under wsl2, I checked the official library of archlinux and the dependency of luarocks is lua5.4
That sounds like a packaging "bug" on the Arch Linux side. luarocks can run with any lua version between 5.1 and 5.4 (and luaJIT).
I guess you can still install lua 5.1. This plugin configures luarocks to use lua 5.1, but that won't work if it isn't installed.
from rocks.nvim.
I found that luarocks will fail to install toml-edit. When I try to install it through the command line, the following prompt appears:
The same thing happened to me a couple of days ago, can you check what your luarocks config
returns? Your lua_version
should point to 5.1
and it seems like it could be pointing to 5.4
. This causes the dependency to be installed correctly, but luarocks cannot recognize it because it looks for it in the wrong directory. Being honest, luarocks should search under the same version that is specified in the CLI but that is already upstream, nothing that can be done from this side :(
from rocks.nvim.
lua5.1 and lua5.4 can coexist on my computer, but luarocks config
outputs 5.4
from rocks.nvim.
But when I specify lua-version is 5.1, its output is 5.1
I think I have an idea. Are PATHs like lua_modules_path
also updated or do they still show 5.4
the luarocks config
output?
from rocks.nvim.
Update: could you open a separate issue to track the problem when trying to install toml-edit using luarocks? That way everything would be more organized and the original problem of this issue seems to have been solved. Thanks in advance!
Ps: I think that following a suggestion made by @mrcjkb we could solve it and also eliminate some dependencies such as requiring having Rust installed, we are going to investigate further on this one.
from rocks.nvim.
Related Issues (20)
- [BUG]: `:Rocks sync` fails on fresh install
- `luarocks` failed to install `toml-edit` HOT 3
- question: once I deploy a lua plugin to luarocks, so I can install it via this plugin manager?
- [Feature] support pinning dependencies HOT 1
- Feature request: fuzzy completion on `:Rocks install` HOT 1
- `rocks.api` module that rocks can use to extend rocks.nvim
- [Module]: `rocks-lsp` module for rocks.toml HOT 1
- [Feature]: Keep track of luarocks errors
- [Bug]: `:Rocks prune` removes rock dependencies that are in `rocks.toml`
- [Bug]: `Rocks install` sometimes appends `:` to version in `rocks.toml` HOT 1
- [Bug] `Rocks sync` should not invoke `luarocks [install|uninstall|update]` concurrently
- [Feature] load prunable rocks cache on startup + after installing/removing a rock
- [Module] `rocks-test` external module for running `luarocks test`
- [Module]: `rocks-config` for common configuration paradigms HOT 1
- [QOL]: Display updating message in fidget.nvim HOT 1
- [QOL/UI] Alternate between 2 progress handlers for operations that involve more than one plugin
- [QOL] `sync` should prune all rocks that can be pruned in one sweep
- [Module] `rocks-gh-request` module for requesting plugins to be published to luarocks
- [Feature] Add newly installed plugins to runtimepath HOT 4
- [Module]: `rocks-git` for pulling plugins that don't exist on luarocks HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocks.nvim.