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

Error while testing a file/directory with failed test cases #50

Open
ansidev opened this issue May 12, 2023 · 1 comment
Open

Error while testing a file/directory with failed test cases #50

ansidev opened this issue May 12, 2023 · 1 comment

Comments

@ansidev
Copy link

ansidev commented May 12, 2023

Reproduce

  1. Run
:lua require('neotest').run.run("path/to/file/or/directory") -- please replace value 

Unfortunately, I cannot provide the code, however, I guess you can use your own one.

  1. A bottom panel will be displayed with error lines. Select a random item immediately and press Enter

  2. The error will be displayed.

Error output

Error executing vim.schedule lua callback: ...local/share/nvim_ansidev/lazy/neotest/lua/nio/tasks.lua:95: Async task failed without callback: The coroutine failed with this message:
...nsidev/lazy/neotest/lua/neotest/consumers/diagnostic.lua:95: attempt to perform arithmetic on a nil value
stack traceback:
        ...nsidev/lazy/neotest/lua/neotest/consumers/diagnostic.lua: in function 'create_diagnostics'
        ...nsidev/lazy/neotest/lua/neotest/consumers/diagnostic.lua:54: in function 'draw_buffer'
        ...nsidev/lazy/neotest/lua/neotest/consumers/diagnostic.lua:163: in function 'draw_buffer'
        ...nsidev/lazy/neotest/lua/neotest/consumers/diagnostic.lua:173: in function 'listener'
        ..._ansidev/lazy/neotest/lua/neotest/client/events/init.lua:51: in function <..._ansidev/lazy/neotest/lua/neotest/client/events/init.lua:47>
stack traceback:
        [C]: in function 'error'
        ....local/share/nvim_ansidev/lazy/neotest/lua/nio/tasks.lua:95: in function 'close_task'
        ....local/share/nvim_ansidev/lazy/neotest/lua/nio/tasks.lua:117: in function 'cb'
        ....local/share/nvim_ansidev/lazy/neotest/lua/nio/tasks.lua:179: in function <....local/share/nvim_ansidev/lazy/neotest/lua/nio/tasks.lua:178>
@fredrikaverpil
Copy link

I believe I found the (upstream) issue: nvim-neotest/neotest#396

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

2 participants