folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.11k stars 173 forks source link

bug: No results when calling Trouble #503

Closed SparrowMike closed 3 weeks ago

SparrowMike commented 3 weeks ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

macOS 14.5 (23F79)

Describe the bug

After updating the trouble to the latest version I get no results from any of the commands ( see bottom right corner on the image ) Screenshot 2024-06-12 at 17 30 07

I resolved the issue by installing with commit from 3.0.0 releases, all other releases above it give me the same results, so far I have tried 3.1.0, 3.2.0, 3.3.0 and 3.4.0 - all of them simply make the trouble.nvim unusable for me.

Steps To Reproduce

  1. Follow installation as per documentations
  2. Use any trouble keys or direct call Trouble gives me no results warning

Expected Behavior

No warning, and expected behaviour would be as per documentation

Repro

return {
  {
    "folke/trouble.nvim",
    -- commit = "971ad925ff6fdb57950d7c5d4c5d65e2cdbaecec",
    branch = "main",
    opts = {}, -- for default options, refer to the configuration section for custom setup.
    cmd = "Trouble",
    keys = {
      {
        "<leader>tt",
        "<cmd>Trouble diagnostics toggle<cr>",
        desc = "Diagnostics (Trouble)",
      },
      {
        "<leader>tT",
        "<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
        desc = "Buffer Diagnostics (Trouble)",
      },
      {
        "<leader>cs",
        "<cmd>Trouble symbols toggle focus=false<cr>",
        desc = "Symbols (Trouble)",
      },
      {
        "<leader>cl",
        "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
        desc = "LSP Definitions / references / ... (Trouble)",
      },
      {
        "<leader>xL",
        "<cmd>Trouble loclist toggle<cr>",
        desc = "Location List (Trouble)",
      },
      {
        "<leader>xQ",
        "<cmd>Trouble qflist toggle<cr>",
        desc = "Quickfix List (Trouble)",
      },
    },
  },
}

Please let me know if there is anything else I need to share, here is my full config

folke commented 3 weeks ago

Can't reproduce. If you want me to look into this, then post a minimal repro as is instructed in the issue template

SparrowMike commented 3 weeks ago

Hi @folke, sorry for the poke and sorry for not giving enough to reproduce the issue.

It is strange - happens to me on my personal machine and my work machine, I have reverted my recent commits to my nvim config just to be sure there wasn't something within my config breaking it.

I have shared the repo to my nvim configuration

Thanks a lot for all of the amazing work, all works perfectly for me on 3.0.0 release, I will try to create a minimal repo to reproduce the issue.

folke commented 3 weeks ago

What happens when you get dianostics in a lua file with invalid syntax? Do you see the diagnostics in the buffer?

folke commented 3 weeks ago

Also, I need a minimal repro as is instructed in the issue template, not a link to your config