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.56k stars 177 forks source link

bug: incorrect row and column in document_diagnostics #264

Closed amlanjlahkar closed 1 year ago

amlanjlahkar commented 1 year ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.8.3

Operating system/version

void linux

Describe the bug

It seems like trouble is having problem with determining the line and column numbers in the document_diagnostics mode. It's treating the line as column number and column as the line number hence producing a faulty behavior when jumping to diagnostic location

Steps To Reproduce

  1. produce some explicit defects in the document which will lead to certain diagnostics to be published
  2. do :Trouble document_diagnostics

Expected Behavior

Trouble returning the correct location of the diagnostics' occurrences

Repro

No response

amlanjlahkar commented 1 year ago

I've rolled back to commit 3bd0292 and it's working as expected