vhyrro / luarocks.nvim

Easily install luarocks with lazy.nvim
The Unlicense
64 stars 5 forks source link

Error during installation #4

Closed kuznetsss closed 2 months ago

kuznetsss commented 3 months ago

Hi, I'm getting error during installation:

❌ Installing LuaJIT
Vim:E731: using Dictionary as a String

I'm using Neovim 0.9.5 on macos 14.3.1.

checkhealth luarocks:

luarocks
- luarocks system is not prepared
- OK python3 is available on PATH, and rocks system is ready to be built

Could you please help with it?

kang8 commented 3 months ago

Same as me.

I'm useing Neovim v0.10.0-dev-2663+gc1c6c1ee1 on MacOS 14.3.1

kuznetsss commented 3 months ago

There is something wrong with this opts. https://github.com/vhyrro/luarocks.nvim/blob/dc4f9db72f1ea890e621c6684aea04d565dcac5b/lua/luarocks/build.lua#L46-L53

I tried to comment out the if is_darwin() and the error is gone. But I'm not sure whether it broke something else or not.

UPD: checking [system() docs](https://neovim.io/doc/user/builtin.html#system()) it turns out the second argument is input for the command but not options.

vhyrro commented 3 months ago

Thanks for the error logs! This should now be fixed I believe! Please test on MacOS and let me know if there are any other errors :)

vhyrro commented 2 months ago

Closing as fixed!