-
Notifications
You must be signed in to change notification settings - Fork 383
Description
When using TexStudio, reference and citation highlighting sometimes spontaneously changes, showing incorrect states (valid vs. invalid). Other times it doesn't change when an invalid reference is fixed. Still other times, the breakage of one item causes unrelated items to be highlighted as if they were invalid, when they are not.
Environment
TeXstudio 4.2.3 (git n/a)
Qt Version 5.15.5, compiled with Qt 5.15.3 R
Fedora 36
TexLive 2021
Expected behavior
With my syntax highlighting configuration in TexStudio, valid references should always be green; invalid references should always be red; highlighting should always reflect the validity of the reference; and highlighting of one item should not be affected at all by breakage in unrelated items.
Actual behavior
The highlighting of both references (not shown here) and citations (shown here) is sometimes incorrect, with valid entries being marked as invalid and vice versa. Also, breaking in one item can cause an unrelated item to be highlighted as if it had become invalid, when it hasn't.
See the following animated GIF for an example of highlighting changing when it shouldn't, and not changing back when it should. In it, I break and fix different citations by adding a space inside them or deleting this space.
As I said above, this also happens with references. Furthermore, this incorrect highlighting can be present immediately upon opening a file, without any user intervention. It can be fixed by changing the incorrectly highlighted item's label and then undoing the change.
Below is another example. Upon opening a file, a valid cross-reference was highlighted as invalid. After I added an extra letter to it (making it a truly invalid cross-ref) and then deleted the extra letter, the original cross-ref was now highlighted in green as valid...
How to reproduce
Use syntax highlighting that distinguishes between valid and invalid references and citations. Add references and citations.

