nvim-neorg / tree-sitter-norg

A TreeSitter parser for the Neorg File Format
MIT License
99 stars 14 forks source link

Fails to build when compiling manually with rocks.nvim #73

Open kasperenjens opened 2 months ago

kasperenjens commented 2 months ago

Hello, when using rocks.nvim on a distro like alpine, where luarocks cannot be used directly, I get the following error when trying to install tree-sitter-norg

ERROR | 2024-08-30 23:44:53 | ....local/share/nvim/rocks/rocks_rtp/lua/rocks/luarocks.lua:63 | luarocks CLI FAILED
ERROR | 2024-08-30 23:44:53 | ....local/share/nvim/rocks/rocks_rtp/lua/rocks/luarocks.lua:64 |
Error: LuaRocks 3.11.1 bug (please report at https://github.com/luarocks/luarocks/issues).
Arch.: linux-x86_64
.../.local/share/nvim/rocks/share/lua/5.1/luarocks/deps.lua:242: assertion failed!
stack traceback:
        [C]: in function 'assert'
        .../.local/share/nvim/rocks/share/lua/5.1/luarocks/deps.lua:242: in function 'luarocks.deps.fulfill_dependency'
        .../.local/share/nvim/rocks/share/lua/5.1/luarocks/deps.lua:335: in function 'luarocks.deps.fulfill_dependencies'
        (...tail calls...)
        ....local/share/nvim/rocks/share/lua/5.1/luarocks/build.lua:416: in function 'luarocks.build.build_rockspec'
        ...al/share/nvim/rocks/share/lua/5.1/luarocks/cmd/build.lua:74: in function <...al/share/nvim/rocks/share/lua/5.1/luarocks/cmd/build.lua:51>
        (...tail calls...)
        ...al/share/nvim/rocks/share/lua/5.1/luarocks/cmd/build.lua:159: in function 'luarocks.cmd.build.command'
        (...tail calls...)
        .../.local/share/nvim/rocks/share/lua/5.1/luarocks/deps.lua:236: in function 'luarocks.deps.fulfill_dependency'
        .../.local/share/nvim/rocks/share/lua/5.1/luarocks/deps.lua:335: in function 'luarocks.deps.fulfill_dependencies'
        ....local/share/nvim/rocks/share/lua/5.1/luarocks/build.lua:139: in upvalue 'process_dependencies'
        ....local/share/nvim/rocks/share/lua/5.1/luarocks/build.lua:416: in function 'luarocks.build.build_rockspec'
        ...al/share/nvim/rocks/share/lua/5.1/luarocks/cmd/build.lua:74: in function <...al/share/nvim/rocks/share/lua/5.1/luarocks/cmd/build.lua:51>
        (...tail calls...)
        ...al/share/nvim/rocks/share/lua/5.1/luarocks/cmd/build.lua:159: in function 'luarocks.cmd.build.command'
        (...tail calls...)                                                                                                           
        [C]: in function 'xpcall'                                                                                                    
        ...s/.local/share/nvim/rocks/share/lua/5.1/luarocks/cmd.lua:765: in function 'luarocks.cmd.run_command'                      
        ...ks/lib/luarocks/rocks-5.1/luarocks/3.11.1-1/bin/luarocks:35: in main chunk                                                
        [C]: in ?                                                                                                                    

ERROR | 2024-08-30 23:44:53 | ...re/nvim/rocks/rocks_rtp/lua/rocks/operations/helpers.lua:93 | Failed to install tree-sitter-norg    

It says it is a luarocks issue, but I am not sure it is, as I do not have this issue with any other nvim plugin