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

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

Open RomaLzhih opened this issue 1 year ago • 1 comments

Did you check docs and existing issues?

  • [X] I have read all the trouble.nvim docs
  • [X] I have searched the existing issues of trouble.nvim
  • [X] I have searched the existing issues of plugins related to this issue

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

RomaLzhih avatar Mar 31 '24 10:03 RomaLzhih

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

pidgeon777 avatar Apr 03 '24 13:04 pidgeon777

Should be fixed now.

folke avatar May 12 '24 19:05 folke

still running into this.

OneOfOne avatar Jun 14 '24 20:06 OneOfOne

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

folke avatar Jun 14 '24 21:06 folke

@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.

OneOfOne avatar Jun 14 '24 21:06 OneOfOne

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

folke avatar Jun 14 '24 21:06 folke