SmiteshP/nvim-gps

E523: Not allowed here constantly showing up using lightline.vim

Closed this issue · 2 comments

Trying to use nvim-gps for my status line on Neovim 0.7 gives the following error:

E5108: Error executing lua ...k\packer\start\nvim-notify/lua/notify/render/default.lua:19: E523: Not allowed here
stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        ...k\packer\start\nvim-notify/lua/notify/render/default.lua:19: in function 'render'
        ...ker\start\nvim-notify/lua/notify/service/buffer/init.lua:101: in function 'render'
        ...ack\packer\start\nvim-notify/lua/notify/service/init.lua:45: in function 'push'
        ...a\site\pack\packer\start\nvim-notify/lua/notify/init.lua:131: in function 'notify'
        vim/_editor.lua:419: in function 'notify_once'
        ...r\start\nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:15: in function 'get_node_text'
        ...ta\site\pack\packer\start\nvim-gps/lua/nvim-gps/init.lua:328: in function 'add_node_data'
        ...ta\site\pack\packer\start\nvim-gps/lua/nvim-gps/init.lua:347: in function 'get_data'
        ...ta\site\pack\packer\start\nvim-gps/lua/nvim-gps/init.lua:393: in function 'get_location'
        [string "luaeval()"]:1: in main chunk

But, if I manually call a few times (I tryed to debug this, but I couldn't) :lua print(require'nvim-gps'.is_available()) and :lua print(require'nvim-gps'.get_location()) the plugin just works normally (showing a deprecationg warning from treesitter that has already been addresses in another issue).

I have merged the pull request that replaces the deprecated function. Can you check if this error is solved now?

Yes, it's fixed now, thanks c: