Skip to content

Warning parsing can't handle undefined label containing colon #4184

@mbertucci47

Description

@mbertucci47

Environment

  • TeXstudio: 4.8.9
  • Qt: 6.9.2

Expected behavior

It is very common to label document items such as sections like \label{sec:foo}, subsections like \label{subsec:foo} and so on. TXS's parsing of the warning for referencing an undefined label only shows the part after the last colon in the label.

Actual behavior

\documentclass{article}

\begin{document}

\ref{sec:foo}

\ref{subsec:bar:blub}

\end{document}
Image

It's also confusing that a floating ' is appended to the label. I think it makes more sense to grab the label starting at the backtick in the actual log warning.

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