Shatur / neovim-tasks

A statefull task manager focused on integration with build systems.
GNU General Public License v3.0
108 stars 10 forks source link

Conflict with nvim-tree - causes recursive autocommand #9

Closed DoDoENT closed 1 year ago

DoDoENT commented 1 year ago

If I open nvim-tree or if I had it open and then start a task from that same buffer, I end-up with following error:

Error executing vim.schedule lua callback: Vim(append):Error executing lua callback: ...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:22: Vim:Error executing vim.schedule lua callback: Vim:E952: Autocommand caused recursive behavior
stack traceback:
        [C]: in function 'setqflist'
        ...site/pack/packer/start/neovim-tasks/lua/tasks/runner.lua:10: in function 'append_to_quickfix'
        ...site/pack/packer/start/neovim-tasks/lua/tasks/runner.lua:80: in function <...site/pack/packer/start/neovim-tasks/lua/tasks/runner.lua:80>
        [C]: in function 'wait'
        .../packer/start/nvim-tree.lua/lua/nvim-tree/git/runner.lua:137: in function '_wait'
        .../packer/start/nvim-tree.lua/lua/nvim-tree/git/runner.lua:156: in function 'run'
        ...ck/packer/start/nvim-tree.lua/lua/nvim-tree/git/init.lua:46: in function 'reload_project'
        ...ck/packer/start/nvim-tree.lua/lua/nvim-tree/git/init.lua:30: in function 'reload'
        ...m-tree.lua/lua/nvim-tree/actions/reloaders/reloaders.lua:44: in function 'reload_explorer'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:367: in function <...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:365>
        [C]: in function 'setqflist'
        ...site/pack/packer/start/neovim-tasks/lua/tasks/runner.lua:145: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
        [C]: in function 'nvim_buf_set_option'
        ...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:22: in function '_draw'
        ...cker/start/nvim-tree.lua/lua/nvim-tree/renderer/init.lua:80: in function 'draw'
        ...m-tree.lua/lua/nvim-tree/actions/reloaders/reloaders.lua:47: in function 'reload_explorer'
        ...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:367: in function <...m/site/pack/packer/start/nvim-tree.lua/lua/nvim-tree.lua:365>
        [C]: in function 'setqflist'
        ...site/pack/packer/start/neovim-tasks/lua/tasks/runner.lua:145: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
        [C]: in function 'setqflist'
        ...site/pack/packer/start/neovim-tasks/lua/tasks/runner.lua:145: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Command actually works and completes correctly, but this error keeps spamming me until I restart nvim. Any idea how to approach resolving that?

Shatur commented 1 year ago

Hm... Was already reported in #8. I think that it's an issue on the nvim-tree. Could you try to report it there?

DoDoENT commented 1 year ago

Will do. Thanks!