nvim-neotest / neotest-python

MIT License
136 stars 40 forks source link

Setting suite to true for neotest throws callback error #80

Open ShouryaRSharma opened 2 months ago

ShouryaRSharma commented 2 months ago

If you enable suite to true: eg.

function M.run_all_tests()
  -- Run all found test files
  require("neotest").run.run(vim.fn.getcwd(), true)
  -- Open the output panel
  require("neotest").output_panel.open()
end

The test suite will run all the unit tests, but it will also result in the following callback:

Error executing luv callback:
...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:105: attempt to call upvalue 'cb' (a boolean value)
stack traceback:
        ...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:105: in function 'close_task'
        ...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:127: in function 'cb'
        ...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:188: in function 'waiter'
        ...lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/control.lua:57: in function 'set'
        ...re/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/init.lua:109: in function 'cb'
        ...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:105: in function 'close_task'
        ...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:127: in function 'cb'
        ...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:188: in function <...e/lunarvim/site/pack/lazy/opt/nvim-nio/lua/nio/tasks.lua:187>