Trouble buffer totally empty for all modes
I have just installed this plugin. When I run :Trouble (or :Trouble <mode> for any mode), the buffer that opens at the bottom of the screen is always totally empty.
I have a properly configured LSP and have opened a file I know to have errors. The diagnostics are showing up for that file with LSP saga.
Here is a minimal vim config that reproduces the issue (nvim -u minimal.vim).
minimal.vim
call plug#begin('/home/marcel/.config/nvim/plugged')
Plug 'neovim/nvim-lspconfig'
Plug 'folke/trouble.nvim'
call plug#end()
lua << EOF
require'lspconfig'.rust_analyzer.setup { }
require("trouble").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
EOF
LspInfo
Use [q] or [Esc] to quit the window
Language client log: /home/marcel/.cache/nvim/lsp.log
Detected filetype: rust
1 client(s) attached to this buffer:
Client: rust_analyzer (id: 1, pid: 521209, bufnr: [1])
filetypes: rust
autostart: true
root directory: /home/marcel/code/rust_motd
cmd: rust-analyzer
Configured servers list: rust_analyzer
nvim version: v0.8.0-dev trouble version: 929315ea
I have the same/similar issue. Trouble was previously working for me.
:lua = vim.diagnostic.get() shows the proper diagnostic list. I have no clue how to even start figuring out what's going on.
I have the same issue. Did either of you find a solution?
I set it up with lsp-zero and have the same issue
I am having the same issue with lazy.nvim :/ Has anyone found a solution?
Actually, I think I might have found the problem. The issue is that trouble will silently save the toggle mode. So if for instance, if you use :TroubleToggle quickfix first (which comes up empty), and then use :TroubleToggle again, it will automatically use :TroubleToggle quickfix. Try :TroubleToggle workspace_diagnostics and see if that works.
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