Skip to content

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

Open
@heit0r

Description

@heit0r

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:

simplescreenrecorder-2024-11-13_13.32.19.mp4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions