Skip to content

Macros located inside an \input{} are unknown until the containing file is opened #3828

@jcasale

Description

@jcasale

Environment

  • TeXstudio: 4.8.5 alpha 1
  • Qt: 6.7.2
  • OS: Windows 11
  • TeX distribution: Miktex

Expected behavior

Opening a document containing macros in an \input{} file should recognize the macros in other files without first opening the input file.

Actual behavior

All my macros show unknown and cannot be autocompleted until I open the file containing the macros.

How to reproduce

  1. Fetch the repro at /jcasale/latex-repro
  2. Open the Repro.tex file
  3. Click through the introduction file
  4. Take note of the unknown macro
    ts-initial
  5. Click through the macros file
  6. Take note of the known macro
    ts-final

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions