Closed 0x67cq closed 4 months ago
Development on the main branch is EOL.
Trouble has been rewritten and will be merged in main soon.
This issue/feature either no longer exists or has been implemented on dev.
For more info, see https://github.com/folke/trouble.nvim/tree/dev
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0
Operating system/version
MacOS 13.4.1
Describe the bug
function() require("trouble").open("lsp_references"), then press print below erro stack
E5108: Error executing lua ....local/share/nvim/lazy/trouble.nvim/lua/trouble/util.lua:28: Cursor position outside buffer stack traceback: [C]: in function 'nvim_win_set_cursor' ....local/share/nvim/lazy/trouble.nvim/lua/trouble/util.lua:28: in function 'jump_to_item' ....local/share/nvim/lazy/trouble.nvim/lua/trouble/view.lua:477: in function 'jump' ....local/share/nvim/lazy/trouble.nvim/lua/trouble/init.lua:197: in function 'action' [string ":lua"]:1: in main chunk
this is error stack. and I try to print some log. look like this:
then I add one line such as:
and it work. I'm a beginner in nvim plugin. I can't descript it. but I think it's because self.parent windows ID not equal current_win and can't usr vim.api.nvim_win_set_cursor to jump. like view.lua's View object's parent in func jump hasn't assignment.
Steps To Reproduce
Expected Behavior
when I use trouble open lsp_references, and press c-v, it will open a vsp window and show references
Repro