nvim-neotest / neotest-python

MIT License
137 stars 40 forks source link

Test error when switching buffers by using tags (Ctrl+]) or gd (go to definition) in neovim. #88

Open heit0r opened 1 week ago

heit0r commented 1 week ago

I'm not sure where to begin and I'm not sure if this is a neotest issue, to be honest.

But every time I open a new window, come back to the previous buffer and perform a new test I get an error:

https://github.com/user-attachments/assets/8475e78f-6a76-42e1-bc54-14e907bb6f5e

The output:

Error executing vim.schedule lua callback: ...istina/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:100: Async task failed without callback : The coroutine failed with this message:
...local/share/nvim/lazy/neotest/lua/neotest/lib/window.lua:69: Failed to rename buffer
stack traceback:
[C]: in function 'nvim_buf_set_name'
...local/share/nvim/lazy/neotest/lua/neotest/lib/window.lua:69: in function 'buffer'
...lazy/neotest/lua/neotest/consumers/output_panel/init.lua:29: in function 'listener'
...are/nvim/lazy/neotest/lua/neotest/client/events/init.lua:51: in function <...are/nvim/lazy/neotest/lua/neotest/client/events/init.l ua:47>
stack traceback:
[C]: in function 'error'
...istina/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:100: in function 'close_task'
...istina/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:122: in function 'cb'
...istina/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:188: in function <...istina/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks. lua:187>

lsp.log:

[START][2024-11-13 13:27:19] LSP logging initiated [ERROR][2024-11-13 13:27:19] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/pylsp" "stderr" "2024-11-13 13:27:19,893 -03 - WARNING - pylsp_jsonrpc.endpoint - Received cancel notification for unknown message id 2\n"

I can only perform tests again after close neovim. Thanks in advance.