-
Notifications
You must be signed in to change notification settings - Fork 388
Syntax error highlighting problem #3885
Copy link
Copy link
Closed
Description
Environment
- TeXstudio: 4.8.5 beta 2
- Qt: 6.8.0
- OS: Windows 11
- TeX distribution: miktex
Expected behavior
Projects that embed macros in files using \input statements should correctly incorporate those definitions into the error-checking semantics.
Actual behavior
The repro package contains a tcolorbox definition that is highlighted as an error when opening the project.
If I open the project and load the macros.tex file into the editor, the erroneous highlighting disappears.
I've observed a few other possibly related details:
- The
macros.texfile always highlights the color definitions at the top of the file as errors inside thetcolorboxdefinitions - I frequently encounter primitives and other latex commands that get highlighted as errors, too (e.g.,
nameref). When this manifests, virtually everything gets marked as an error, and I need to restart TS to solve this.
I have the following settings enabled that I assume may be related and important:
- Automatically load included files
- Cache documents for faster reopening
How to reproduce
The repro at jcasale/latex-repro contains the reproduction project.
- Open the
repro.texmain project file. - Open the
introduction.texfile and observe the erroneous highlighting. - Open the
macros.texfile, then switch back to theintroduction.texfile and observe the correct highlighting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

