Open Iorvethe opened 1 month ago
I think it has something to do with the indices as working on a bigger document, and doing similar edits, the indices seem to accumulate quite a bit, up to the point of the parser missing certain tags or headings entirely (this is seen, for example, when searching the document symbols with tinymist
).
I don't get it when I see the screen cast, because it looks so weird. But I will explore it by myself.
Thanks for looking into it! And sorry for the screen-casts of mediocre quality, it appears that not everything I see on my terminal is on the casts (the underline for the errors, specifically), and I realize that the chain of actions are not very clearā¦
I think that the second case is perhaps easier to reproduce, and is essentially the same issue. So, with the following file:
$šŖ$
The steps are to:
unclosed delimiter
at the position of the first $
I hope this is easier to reproduce, and feel free to ask me for any other information.
Edit: on a second thought, maybe the issue is with the editor. For your information, I use Helix.
I have checked it for several times but I cannot reproduce it in vscode. And I cannot understand why diagnostics show and disappear just when we are moving cursor in helix.
Thanks for spending time on it! Itās a bummer that it canāt be triggered on VSCodeā¦ As for the diagnostics in Helix, I think that they are always present, but shown on-screen only when the cursor is on a position for which there is a diagnostic. In this case, itās on the first delimiter, but something weird happens when an additional $
is added at the end. The diagnostic moves all the way over the additional $
. See the video below.
Here are a few observations that may be relevant:
marksman
, texlab
) which is why it led to believe initially that it was an issue with tinymist
and not with helix
.Observations 1 and 2 maybe hint at an issue with the incremental update? However, I have knowledge of neither Helix nor Tinymist, so Iāll refrain from further wild guessing. But, if I can be of any help, please let me know!
Describe the bug This is best understood with a screen-cast as show here using the following file content.
The steps to reproduce are:
Another way to trigger it is to change the
šŖ
by aO
, as show here.Package/Software version:
tinymist extension version:
v0.11.1
. Get it bytinymist --version
in terminal.tinymist -V