Open myste1tainn opened 4 months ago
The issue happens here because Starting from 2.1.x LuaJIT is a rolling release. So those numbers we see are not release numbers, but just incremental rolling counters. It just means LuaJIT gets updated as soon as the master branch updates. But the hererocks python file still hasn't been updated to support rolling releases.
We would need to fix this on both ends, in the hererocks.py file that luarocks uses (that is a fork since the original project by mpeterv is no longer maintained), and in packer.nvim (just for passing the argument)
Fix is already present in hererocks. They are using the rolling21 switch when installing through hererocks. Appliying the command here.
Fix is:
If we detect numbers corresponding to a rolling release. We will provide the rolling21 switch in the command line.
nvim --version
:Run :checkhealth for more info
git version 2.39.3 (Apple Git-145)
macOS Sonoma 14.2.1
kitty 0.26.5 created by Kovid Goyal
:PackerSync
Actual behaviour
Found error `Failed to install hererocks'
Expected behaviour
Able to install hererocks and the luarocks dependencies
packer files
Since the installation failed, I've dug into the
luarocks.lua
a bit and found the line which composed the `hererocks' installation command like sowhich returns the results like
$ luajit -v
isBut then after some googling certain user is using the
Neovim of 0.5
andLuajit of the 2.3.0-beta3
, so I tried changing the command like soNow the installation pass (manually)
After that I went into the Neovim again, now I am able to install the luarocks package as normal. Not sure if there a compatibility problem with the Luajit and what not. But this is what I've found and circumvent so far.