trouble.nvim icon indicating copy to clipboard operation
trouble.nvim copied to clipboard

Trouble buffer totally empty for all modes

Open MarcelRobitaille opened this issue 3 years ago • 5 comments

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

MarcelRobitaille avatar Sep 10 '22 18:09 MarcelRobitaille

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.

bwidawsk avatar Dec 19 '22 16:12 bwidawsk

I have the same issue. Did either of you find a solution?

leekool avatar Apr 15 '23 15:04 leekool

I set it up with lsp-zero and have the same issue

smartinellimarco avatar May 06 '23 20:05 smartinellimarco

I am having the same issue with lazy.nvim :/ Has anyone found a solution?

biggusbeetus avatar Jun 28 '23 00:06 biggusbeetus

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.

biggusbeetus avatar Jun 28 '23 00:06 biggusbeetus

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

folke avatar Mar 29 '24 07:03 folke