-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Characters rendering multiple times #2248
Comments
Can you check if this was fixed in |
Tried 22.05-dev, same results. |
A fresh install of the dev branch with a fresh pylsp install produces the same results, too. |
It's only at the end of the document, right? I've seen that happen before when the diagnostics ranges were pointing past the document end |
Naively I think we might be able to handle this here: helix/helix-term/src/ui/editor.rs Lines 275 to 289 in 3cced1e
by doing a |
Digging into this, the diagnostic isn't beyond the document - we do have checks that handle that case in the rendering code. So using the The issue is that there are overlapping diagnostics at the end of the document. This falls into a specific hole in the highlight event stream merge Iterator implementation (
The easiest way to fix the exact case of #3617 (and this case too I expect) is to deduplicate the diagnostics Vec in Footnotes
|
Summary
When written code produces warnings/errors and they happen to extend past the end of the document, characters are shadowed in the non-existent lines.
Video of the behavior
I used the LSP provided within the documentation (pylsp) with
python-lsp-black
,pylsp-rope
andpylsp-mypy
(none of these could cause that sort of behavior as far as I know)Reproduction Steps
I tried this:
Inserting text
I expected this to happen:
Text to be inserted once
Instead, this happened:
It appears multiple times
Helix log
No response
Platform
Linux
Terminal Emulator
Konsole 21.12.3
Helix Version
helix 0.6.0
The text was updated successfully, but these errors were encountered: