nvim-neorocks / toml-edit.lua

Edit toml files while preserving whitespace and formatting from Lua.
MIT License
12 stars 3 forks source link

Maybe cannot work in android #29

Closed Freed-Wu closed 3 months ago

Freed-Wu commented 4 months ago

In android Termux:

$ luarocks install --local rocks.nvim
Error detected while processing /data/data/com.termux/files/home/.local/lib/luarocks/rocks-5.1/rocks.nvim/2.31.3-1/
plugin/rocks.lua:
E5113: Error while calling lua chunk: ...rmux/files/home/.local/rocks_rtp/lua/luarocks/loader.lua:104: error loadin
g module 'toml_edit' from file '/data/data/com.termux/files/home/.local/lib/lua/5.1/toml_edit.so':
        dlopen failed: cannot locate symbol "lua_gettop" referenced by "/data/data/com.termux/files/home/.local/lib
/lua/5.1/toml_edit.so"...
stack traceback:
        [C]: in function 'a_loader'
        ...rmux/files/home/.local/rocks_rtp/lua/luarocks/loader.lua:104: in function <...rmux/files/home/.local/roc
ks_rtp/lua/luarocks/loader.lua:101>
        [C]: in function 'require'
        ...iles/home/.local/share/lua/5.1/rocks/config/internal.lua:73: in function 'get_rocks_toml'
        ...iles/home/.local/share/lua/5.1/rocks/config/internal.lua:93: in function 'get_user_rocks'

Environment:

lua 5.1

Other information:

❯ ldd ~/.local/lib/lua/5.1/toml_edit.so
        libdl.so => /system/lib64/libdl.so
        libm.so => /system/lib64/libm.so
        libc.so => /system/lib64/libc.so
        ld-android.so => /system/lib64/ld-android.so
mrcjkb commented 4 months ago

Hey 👋

One thing you could try is to make sure luarocks is using luajit (presuming you're using Neovim built with luajit).

Freed-Wu commented 3 months ago

Change shebang of luarocks to luajit, still cannot work :cry:

mrcjkb commented 3 months ago

Likely related: https://github.com/nvim-neorocks/rocks.nvim/issues/208#issue-2195311242

Freed-Wu commented 3 months ago

Yes, should be same. any binary rocks have this bug in Android Termux's neovim.