Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting suite to true for neotest throws callback error #80

Open
ShouryaRSharma opened this issue Aug 19, 2024 · 0 comments
Open

Setting suite to true for neotest throws callback error #80

ShouryaRSharma opened this issue Aug 19, 2024 · 0 comments

Comments

@ShouryaRSharma
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant