nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.25k stars 110 forks source link

[BUG] Quickfix menu issue #269

Open Thevetat opened 1 year ago

Thevetat commented 1 year ago

NeoVim Version NVIM v0.10.0-dev Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilation: /usr/bin/cc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=auto -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_TS_HAS_SET_MAX_START_DEPTH -I/usr/include/luajit-2.1 -I/usr/include -I/build/neovim-DR54Ll/neovim-0.10.0~ubuntu1+git202306022019-c45a111e3-9b397864c/.deps/usr/include -I/build/neovim-DR54Ll/neovim-0.10.0~ubuntu1+git202306022019-c45a111e3-9b397864c/build/src/nvim/auto -I/build/neovim-DR54Ll/neovim-0.10.0~ubuntu1+git202306022019-c45a111e3-9b397864c/build/include -I/build/neovim-DR54Ll/neovim-0.10.0~ubuntu1+git202306022019-c45a111e3-9b397864c/build/cmake.config -I/build/neovim-DR54Ll/neovim-0.10.0~ubuntu1+git202306022019-c45a111e3-9b397864c/src

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"

Describe the bug

 Error  10:39:07 PM msg_show.lua_error Error executing vim.schedule lua callback: /home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:95: Async task failed without callback: The coroutine failed with this message: 
...are/nvim/lazy/neotest/lua/neotest/consumers/quickfix.lua:73: Vim(copen):E36: Not enough room
stack traceback:
    [C]: in function 'nvim_command'
    ...are/nvim/lazy/neotest/lua/neotest/consumers/quickfix.lua:73: 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.lua:47>
stack traceback:
    [C]: in function 'error'
    /home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:95: in function 'close_task'
    /home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:117: in function 'cb'
    /home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:179: in function </home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:178>

When I press R in the neotest window, I get the above error.

The odd part is sometimes the quickfix menu will pull up, sometimes it will not. This is while using edgy.nvim. Not sure how to make a proper minimal config, I will work on that now.

One interesting thing to note, if I only have the Trouble menu up, the error appears, and no quickfix.

If I launch neotest from lazyvim menu, with no Trouble menu opened, I get this error:

vim/_editor.lua:0: BufReadPost Autocommands for "*"..script nvim_exec2() called at BufReadPost Autocommands for "*":0../home/dean/.local/share/nvim/lazy/indent-blankline.nvim/plugin/indent_blankline.vim, line 31: Vim(lua):E5108: Error executing lua vim/_editor.lua:0: BufReadPost Autocommands for "*"..script nvim_exec2() called at BufReadPost Autocommands for "*":0../home/dean/.local/share/nvim/lazy/indent-blankline.nvim/plugin/indent_blankline.vim[31]..nvim_exec2() called at /home/dean/.local/share/nvim/lazy/indent-blankline.nvim/plugin/indent_blankline.vim:31: Vim(windo):E788: Not allowed to edit another buffer now
stack traceback:
    [C]: in function 'nvim_exec2'
    vim/_editor.lua: in function 'cmd'
    .../indent-blankline.nvim/lua/indent_blankline/commands.lua:7: in function 'refresh'
    ...lazy/indent-blankline.nvim/lua/indent_blankline/init.lua:17: in function 'init'
    [string ":lua"]:1: in main chunk
    [C]: in function 'nvim_exec2'
    vim/_editor.lua: in function 'cmd'
    ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:473: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:472>
    [C]: in function 'xpcall'
    .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:110: in function 'try'
    ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:472: in function 'source'
    ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:431: in function 'source_runtime'
    ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:399: in function 'packadd'
    ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:335: in function '_load'
    ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:184: in function 'load'
    ...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:33: in function <...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:26>
    [C]: in function 'resume'
    /home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:113: in function 'cb'
    /home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:179: in function </home/dean/.local/share/nvim/lazy/neotest/lua/nio/tasks.lua:178>

# stacktrace:
  - vim/_editor.lua:0 _in_ **cmd**
  - /neotest/lua/nio/tasks.lua:113 _in_ **cb**
  - /neotest/lua/nio/tasks.lua:179

If I restart nvim, open up Trouble, then open up Noice Notifications, to add a new window, the quickfix will appear, and the error is not there.

I think it has to do with me using Trouble on auto open maybe? or there not being a large enough menu, I am really not sure.

Thanks for your work.

https://github.com/Thevetat/nvim

folke commented 1 year ago

Is that a recent Neovim Nightly? I fixed a bug in Neovim around the time I release edgy. Edgy is only compatible with stable or with a nightly after that