Skip to content

Keys defined in per-library cwls missing in completion list #3791

@muzimuzhi

Description

@muzimuzhi

Environment

  • TeXstudio: 4.8.2
  • Qt: 6.7.2
  • OS: macOS 14.6.1
  • TeX distribution: BasicTeX 2024

Expected behavior

After loading a package library, the keys defined in cwl of that library are shown in the corresponding completion list(s).

Actual behavior

Those keys are recognized (no "unrecognized key in key option" prompt), but missing in completion list(s).

How to reproduce

\documentclass{article}
\usepackage{tcolorbox}
\tcbuselibrary{breakable}

\tcbset{}

\begin{document}
\begin{tcolorbox}[]
  content
\end{tcolorbox}
\end{document}

The corresponding cwl for tcolorbox library breakable provides key breakable and many more for the option list of \tcbset, \begin{tcolorbox}, etc.

#keyvals:\tcbset,\begin{tcolorbox},\tcbsetforeverylayer,\tcbox,\newtcolorbox,\renewtcolorbox,\newtcbox,\renewtcbox,\tcolorboxenvironment,\tcbsubtitle,\tcbsidebyside,\tcbsubskin,\tcbincludegraphics,\tcbincludepdf,\begin{tcbraster},\begin{tcbitemize},\tcbitem,\begin{tcboxedraster},\begin{tcboxeditemize},\begin{tcblisting},\tcbinputlisting,\newtcblisting,\renewtcblisting,\newtcbinputlisting,\renewtcbinputlisting,\NewTcbTheorem,\newtcbtheorem,\RenewTcbTheorem,\renewtcbtheorem,\ProvideTcbTheorem,\DeclareTcbTheorem,\tcboxmath,\tcbhighmath,\usetcboxarray,\consumetcboxarray,\posterbox,\begin{posterboxenv},\tcboxfit,\newtcboxfit,\renewtcboxfit,\DeclareTColorBox,\NewTColorBox,\RenewTColorBox,\ProvideTColorBox,\DeclareTotalTColorBox,\NewTotalTColorBox,\RenewTotalTColorBox,\ProvideTotalTColorBox,\DeclareTCBox,\NewTCBox,\RenewTCBox,\ProvideTCBox,\DeclareTotalTCBox,\NewTotalTCBox,\RenewTotalTCBox,\ProvideTotalTCBox,\DeclareTCBListing,\NewTCBListing,\RenewTCBListing,\ProvideTCBListing,\DeclareTCBInputListing,\NewTCBInputListing,\RenewTCBInputListing,\ProvideTCBInputListing,\DeclareTCBoxFit,\NewTCBoxFit,\RenewTCBoxFit,\ProvideTCBoxFit,\DeclareTotalTCBoxFit,\NewTotalTCBoxFit,\RenewTotalTCBoxFit,\ProvideTotalTCBoxFit,\tcboxverb,\begin{docCommand},\begin{docCommand*},\begin{docCommands},\begin{docEnvironment},\begin{docEnvironment*},\begin{docEnvironments},\begin{docKey},\begin{docKey*},\begin{docKeys},\begin{docPathOperation},\begin{docPathOperation*},\begin{docPathOperations},\docValue,\docValue*,\docAuxCommand,\docAuxCommand*,\docAuxEnvironment,\docAuxEnvironment*,\docAuxKey,\docAuxKey*,\docCounter,\docCounter*,\docLength,\docLength*,\docColor,\docColor*,\begin{dispExample*},\begin{dispListing*},\tcbdocmarginnote
breakable

  • In the argument of \tcbset{...}, type in "break" and see that there's no "breakable" in the completion list, "all" tab.
  • \tcbset{break} shows "break" is unrecognized, but \tcbset{breakable} is recognized.
  • In the optional argument of \begin{tcolorbox}[...], type in "break" and check the similar behavior.

Commands provided by libraries are both recognized and shown in completion list, for example \tcbbreak in breakable library.

image

image


It seems to me this is a regression, though I'm not sure.

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