Menu

#933 Suddenly all my labels are stated as multiple times defined

None
fixed
nobody
None
1
2015-10-27
2014-03-19
Carlos
No

Suddenly all my labels are stated as multiple times defined! But they are not defined more than once!

Texstudio 2.7.0. Windows 7 64bits.

Discussion

  • Carlos

    Carlos - 2014-03-19

    By labels I mean the \label command and its \ref call.

     
  • Carlos

    Carlos - 2014-03-19

    There was a mess in the texstudio.ini caused by the upgrade from 2.6.6 to 2.7.0.
    I removed the file and started ALL OVER AGAIN to solve this issue.
    Sad but true...

     
  • Tim Hoffmann

    Tim Hoffmann - 2014-03-20

    Do you have by chance the messed up texstudio.ini so that we could find out, what went wrong?

     
  • Carlos

    Carlos - 2014-03-21

    Unfortunately I deleted it... :(

     
  • Tim Hoffmann

    Tim Hoffmann - 2014-03-23

    Not reproducible here. If anyone has the same issue, please report back so we can investigate further.

     
  • Tim Hoffmann

    Tim Hoffmann - 2014-03-23
    • status: open --> works-for-me
    • Group: -->
     
  • Carlos

    Carlos - 2014-03-23

    The problem occurred again! But now I know where it comes from. If I mark my document as MASTER, all my labels are stated as multiple times defined. If I unmark it, restart texstudio, then it goes back to normality.

     

    Last edit: Carlos 2014-03-23
  • serenity cleveland

    I have this problem too. After updating, all my labels in the document are underlined as multiply defined.

     
  • serenity cleveland

    The workaround with defing file as master file doesn't work for me

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-09-14

    Can you please provide a minimal example?

     
  • serenity cleveland

    today the problem suddenly disappeared without doing anything... yesterday was not correct, and today works fine. not clear what happened

     
  • serenity cleveland

    no, it is still present in some files and absent in some others. i have the main file, there i \include my chapters, and some chapters have \input sections. and the sections have labels.
    when i use \cref to reference sections, figures, equations, and when i declare labels, they all are marked as multiply defined.
    some files that are \input have this problem and some others that are \input don't.

    Here example of a file that is \input in a file that is \include in main. Bold are labels with errors.

    \section{Methodology}
    \label{sec:methods}

    This section describes ...ed in \cref{fig:procedure}. The calculations ...

    \begin{figure}
    \centering
    \input{./tex/flowchart}
    \caption{\label{fig:procedure}Procedure of calculations}
    \end{figure}

    %the inputs
    The inputs for th...els (see \cref{sec:data}) ... %%%NO ERROR HERE

    %what the outputs are used for
    The initial ... (see \cref{sec:scenarios} for further information).

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-09-15

    Are you using version 2.10.x? If so, you can use "Find Usages" from the context menu of the label. TXS will then list all locations, in which the label is used. Please check and make sure there is only one definition.

     
  • serenity cleveland

    yes, my version is 2.10.

    i have found the usages as you suggested, and the labels marked as multiply defined are in fact defined only once.

    i attach the snapshot of it:

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-09-16

    We've just published a bugfix release 2.10.2. I'm not very optimistic that this will fix it because we have not explicitly any fix for this issue, but please give it a try. If the problem still persists, can you please provide a minimal example (possibly a stripped-down version of your document)?

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-09-16
    • status: works-for-me --> open
     
  • Carlos

    Carlos - 2015-10-21

    I'm back again, after a long time without using Texstudio. However, new version, same old problems! :(
    Labels missing or multiple times defined!
    Clean install of Texstudio (just edited the color scheme).

    System info: Texstudio v2.10.2, texlive 2015, win7 64bits

    https://www.dropbox.com/s/vepi4rr0c8guisl/Screenshot%202015-10-21%2014.28.06.png

     

    Last edit: Carlos 2015-10-21
  • Tim Hoffmann

    Tim Hoffmann - 2015-10-21

    Hi Carlos, can you please provide a minimal working example?

     
  • Carlos

    Carlos - 2015-10-22

    Of course I can, however it is an intermittent issue. It occurs only in some documents.
    The code below is a MWE. The command \ref{tab:flows} says that the label is missing, but it is not.
    I hope it works for you.

    Regards.

    \documentclass[dvips,conference,a4paper,twocolumn,final]{IEEEtran}
    \usepackage{cite}
    \usepackage[dvips]{graphicx}
    \graphicspath{{.}{Images/}}
    \DeclareGraphicsExtensions{.eps}
    \usepackage[cmex10]{amsmath}
    \interdisplaylinepenalty=2500
    \usepackage[tight,footnotesize]{subfigure}
    \usepackage{stfloats}
    \usepackage{url}
    \urlstyle{same}
    \usepackage{times}
    \usepackage{multirow}
    \usepackage{ctable}
    \usepackage{float}
    
    \begin{document}
    \title{My title}
    
    \author{\IEEEauthorblockN{Carlos$^{\star}$}
    \IEEEauthorblockA{$^{\star}$Department\\
    Faculty\\
    Address\\
    \{carlos\}@faculty}\\
    }
    
    \maketitle
    
    \begin{abstract}
    Blablabla
    \end{abstract}
    
    \section{Introduction}
    
    Table~\ref{tab:flows} presents the real-time streams definition. 
    
    \begin{table}[H]
        \caption{Real-time message streams definition.}\label{tab:flows}
        \centering
        \footnotesize
        \begin{tabular}{cllrr}
            \toprule
            \textbf{Stream} & \textbf{Source} & \textbf{Destination} & \textbf{Size} & \textbf{Periodicity} \\
            \midrule 
            1 & mesh STA 1  & mesh STA 25 &  80 bytes &  50 ms \\
            2 & mesh STA 21 & mesh STA 5  &  80 bytes & 200 ms \\
            3 & mesh STA 25 & mesh STA 1  & 300 bytes & 200 ms \\
            4 & mesh STA 5  & mesh STA 21 & 300 bytes &  50 ms \\
            \bottomrule
        \end{tabular}
    \end{table}
    
    \end{document}
    
     

    Last edit: Carlos 2015-10-22
  • Denis Bitouzé

    Denis Bitouzé - 2015-10-22

    Works like a charm here (TeXstudio 2.10.4 Release Candidate (hg 5624+:1468efd26004+), Qt version 4.8.6, compiled with Qt 4.8.6 R, on Linux Mageia 5).

     

    Last edit: Denis Bitouzé 2015-10-22
  • Carlos

    Carlos - 2015-10-22

    If I create a new document and copy/paste the code below, the problem still occurs.

     
  • Tim Hoffmann

    Tim Hoffmann - 2015-10-26

    Please update to the recently released version 2.10.4 and check again (works for me there).

     
    • Carlos

      Carlos - 2015-10-27

      The problem of missing label is solved in 2.10.4. Thanks for the effort.
      However, if I have a root/master document defined, and there is a label 'A', and if I create a new file with the same label 'A', it says "label multiple times defined". I already reported it here: https://sourceforge.net/p/texstudio/bugs/933/#69d4

       
  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-10-27

    if you define a root/master document, you force txs to assume that all open documents are connected with this one, hence "duplicate label".
    It is better either to have the parent document open (at least once, when related documents are still open, closing does not remove it from memory), so that txs can detect parent/child relations on its own or use %Tex root = as header line (see manual).

     

    Last edit: Jan Sundermeyer 2015-10-27
  • Jan  Sundermeyer

    Jan Sundermeyer - 2015-10-27
    • status: open --> fixed
     

Log in to post a comment.