Closed justjew closed 1 day ago
Not super helpful but have also seen this issue.
Any updates? This issue is so annoying. I get multiple of those if I delete/undo/cut multiple lines of code at once for each of the lines I delete and it blocks my entire view.
For full visibility, this issue is going to need someone to get their hands dirty and dig in for a solution. As I've mentioned in other issues I'm not currently actively maintaining this and am fully dependent on users and contributors submitting PRs to fix issues like this.
I'll be happy to have a look at this
On investigation, it seems the line numbers we're getting (from the lsp) to draw the labels are falling out of sync with the buffer. Managed to reproduce this with some sample data.
Current theory is we get line numbers from the lsp response that don't match with the line numbers in the buffer.
The current implementation is when we come to draw the labels using nvim_buf_set_extmark
, we catch any issues and notify with the error in the post.
Not sure how we want to handle this? I don't think this is the plugin's specific problem, and labels will recover pretty quickly. Perhaps only render the label if it doesn't exceed the file line length?
This is a good proposal. As you said labels will recover pretty quickly, so showing this label error does not add much value.
Merged this in now which I hope fixes this issue so will close this out but if it recurs for anyone comment back on here and I'll re-open
Is there an existing issue for this?
Current Behavior
Sometimes when I cut (
d
) a big block of code, especially aftervar qwer =
until;
, I am facing the following error.If I disable
flutter-tools
and enabledartls
usinglspconfig
, the error never appears.Here's my
flutter-tools
config:Expected Behavior
No error
Steps To Reproduce
=
to;
Environment
Anything else?
No response