Menu

#1946 Label detection not working in Texstudio 2.11.2

None
closed
nobody
label (4)
1
2016-10-25
2016-10-24
No

Hello,
my label detection and auto completion does not seem to work. Here an example:

\documentclass[acmtosn]{acmsmall} 
\usepackage{cleveref}

\begin{document} 
\ref{sec:bla}
\Cref{sec:bla}

\section{bla} \label{sec:bla}
xx

\end{document}

attached is a screenshot which I captured after running the build chain a couple of times.

The acmsmall class is from http://www.acm.org/binaries/content/assets/publications/article-templates/acmsmall.zip

1 Attachments

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-10-24

    which version of txs ?
    make sure that cleveref.cwl does not contain \label ...

     
    • Herbert Meier

      Herbert Meier - 2016-10-24

      TeXstudio 2.11.2 (hg 6191:c01fb289a5fe) with TexLive 2016
      Please see also my other comment below. Thanks a lot.

       

      Last edit: Herbert Meier 2016-10-24
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-10-24

    works fine here

     
  • Herbert Meier

    Herbert Meier - 2016-10-24

    I can find that file:

    % find ~/.config/texstudio/ -type f -iname "*cleveref*"
    

    But I enabled the completion for cleveref in the texstudio settings.

     

    Last edit: Herbert Meier 2016-10-24
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-10-24

    1) you should not activate completion files manually as the autodetection usually works well
    2) txs uses .config/texstudio/completion/user/*.cwl if present, even if txs provides the cwl itself. (so that you can change settings) Assuming that you did not change the file, delete it, as txs now provides cleveref.cwl

     

    Last edit: Jan Sundermeyer 2016-10-24
    • Herbert Meier

      Herbert Meier - 2016-11-02

      The issue is regulary reappearing (without changing anything regardin the configuration or TexLive setup). I noticed it e.g. when using Texstudio for some time and rebooting then. The only solution is then again to delete the completion folder and restart texstudio.

       

      Last edit: Herbert Meier 2016-11-02
  • Herbert Meier

    Herbert Meier - 2016-10-25

    As the file wasn't there I didn't know what to do, so I just removed ~/.config/texstudio/completion and restarted TexStudio. Now it seems to work. Thanks!

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-10-25
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.