-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] "error drawing label" when cut a large block of code #357
Comments
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. 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
The text was updated successfully, but these errors were encountered: