Open gramblerz opened 4 days ago
https://github.com/clearlinux-pkgs/neovim/blob/main/neovim.spec Not sure, might be luaJIT's 5.2 or upstream lua latest from the spec file.
from the build logs -- Using Lua interpreter: /usr/bin/luajit -- Using Lua interpreter for code generation: /usr/bin/luajit -- Using Lua compiler: /usr/bin/luajit -b -s %s -
so it's our luajit
On Sun, Nov 17, 2024 at 8:18 PM William Douglas @.***> wrote:
https://github.com/clearlinux-pkgs/neovim/blob/main/neovim.spec Not sure, might be luaJIT's 5.2 or upstream lua latest from the spec file.
— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/3208#issuecomment-2481915424, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FJWKHCPT45IQS2WRXL2BFTBDAVCNFSM6AAAAABR6W2FBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBRHEYTKNBSGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
your luajit is beta03 if i install default git v2.1 /usr/bin/nvim does not open says:
vim/_init_packages.lua: cannot load incompatible bytecode
stack traceback:
[C]: at 0x560aa9cf77be
[C]: at 0x560aa9a1a290
E970: Failed to initialize builtin lua modules
if i check out 2.1.0-beta3 and install it then /usr/bin/nvim opens. (if i uninstall my own neovim plugins give issues (i use lunarvim)) however, i think that i have built neovim with your luajit installed. maybe you build it differently, more statically or something? include something extra?
maybe neovim bundles its own luajit which you don't use and instead use your own.
in the cmake options of my neovim git, LUA_GEN_PRG is set to /home/g/git-pkges/neovim/.deps/usr/bin/luajit. ( LUA_GEN_PRG: Path to the lua used for code generation. )
neovim has been a slight nightmare for us on the lua front -- it also wants lpeg and a few others to come with it and it seems the lua ecosystem has become fragmented
if you have a well working setup we'd be very interested to see if we can replicate that -- but ideally with exact versions of all the pieces since we do need all of them to work together in the end ;( (and lua extends beyond neovim so if a choice breaks other lua parts that's also not a happy spot for us obviously)
On Mon, Nov 18, 2024 at 1:59 PM gramblerz @.***> wrote:
LuaJIT/LuaJIT#665 (comment)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
neovim cmake takes care of dependencies simple make and sudo make install. see cmake.deps/ in the source.
Neovim uses latest version from branch v2.1 https://github.com/neovim/neovim/blob/081beb3659bd6d8efc3e977a160b1e72becbd8a2/cmake.deps/deps.txt#L4
Another option is to compile with static libs
plugins are throwing errors. if i compile and install luajit from source neovim complains that it cannot use lua modules and does not open. if i compile and install neovim from source plugins work nice.