ryleelyman / tidal.nvim

neovim plugin for tidalcycles
MIT License
3 stars 3 forks source link

send_node: get_root_for_node (nill) #3

Open mashaal opened 4 months ago

mashaal commented 4 months ago

Nice work on this plugin, I seem to getting more mileage than others I've found. I am running into an issue with the send_node implementation though..

Currently getting the error below -- I've tried swapping to different versions of treesitter and debugging the send_node function with no luck

E5108: Error executing lua: /tidal.nvim/lua/tidal.lua:165: attempt to call field 'get_root_for_node' (a nil value)
stack traceback:
    /tidal.nvim/lua/tidal.lua:165: in function 'send_node'
    /tidal.nvim/lua/tidal.lua:33: in function </tidal.nvim/lua/tidal.lua:32>

Also, it looks like get_node_at_cursor has been recently deprecated

https://neovim.io/doc/user/deprecated.html#vim.treesitter.get_node_at_cursor()

ryleelyman commented 4 months ago

hi! i'm no longer using neovim very frequently, so haven't made any attempt at maintaining this plugin. i'd happily accept a PR if you figure out a fix, and would gladly transfer "ownership" of the repository if that makes sense as well.