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.15k stars 173 forks source link

bug v3: Preview.lua: Invalid `end_col`: out of range #404

Closed RomaLzhih closed 2 months ago

RomaLzhih commented 3 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.9.5

Operating system/version

Centos 8

Describe the bug

When using clangd as the LSP and toggling the trouble using <cmd>Trouble diagnostics toggle<cr>, any touch of the quicklist would throw many error messages as below: Weixin Screenshot_20240331024634 However, this issue may not appear in other LSPs, i.e., the pyright for python. Related issue here and here.

Steps To Reproduce

My config is available here. You can open a cpp file with some diagnostic then it should appear.

Expected Behavior

There should be no error messages.

Repro

No response

pidgeon777 commented 3 months ago

I also have the same error with a different VHDL LSP:

...nvim-data/lazy/trouble.nvim/lua/trouble/view/preview.lua:67: Invalid 'end_row': out of range
folke commented 2 months ago

Should be fixed now.

OneOfOne commented 3 weeks ago

still running into this.

folke commented 3 weeks ago

@OneOfOne can you give me a trace or repro on when you get this?

OneOfOne commented 3 weeks ago

@folke I can't get a constant repro right now, it's absolutely random, sometimes I'd be editing a file and I get spammed with it, sometimes doesn't even happen for a day.

folke commented 3 weeks ago

ok, next time, can you please drop the exact error line(s) you see?