Menu

#211 TeX Mode error using standard package

9.0.3
closed
nobody
None
Bug
major
2019-01-22
2018-12-21
Matt Haddad
No

When using the "physics" package in pdfLaTeX (a standard package included in distribution) I get the following error upon compilation:
"Unbalanced parentheses in the log file could not be resolved. Please report this, annexing the log file to the report."

It happens on each run of pdfLaTeX and on all computers that I have been able to test this on.

1 Attachments

Related

Tickets: #211

Discussion

  • Matt Haddad

    Matt Haddad - 2018-12-21

    Sure thing.

     
  • Joachim Kock

    Joachim Kock - 2018-12-21

    Thanks for reporting this and thanks for the log file.
    There is indeed an unbalanced parenthesis in line 565 of the log file,
    issued by the package as part of some message from the package.
    A minimal patch would consist in taking exception for this kind of message.
    But potentially other packages could issue messages with unbalanced
    parentheses and there is no point in trying to detect them in packages,
    since presumably packages have no errors (the parens matching is
    only for the sake of error browsing), so a more thorough fix would consist
    in only starting the parens matching business once tex actually begins
    reading the main input file. I will look into this.
    Cheers, Joachim.

     
  • Joachim Kock

    Joachim Kock - 2018-12-21

    My last sentence does not make sense, because all packages are of course input from the main file.

    But it is true that I will look into a better fix.

     
  • Joachim Kock

    Joachim Kock - 2018-12-22

    Hi again,

    a miminal fix is to add these three lines to tetexComm.tcl, in line 2080 (after the other entries of the patList):

    # The following is specifically to remove an unbalanced 
    # message issued by the 'physics' package:
    lappend patList {\. Defining command [^\r\n]*}
    

    I have tested it. Would you apply the patch, Bernard? I have some trouble with svn :-(

    In the long run, I want to revise the whole logfile scanning mechanism. It is not fair that this error message should bother innocent users who might not even use error browsing. It should be decoupled from the general tex run and only be performed on the fly when error browsing is invoked. And the error handling should be more graceful. I will implement this structural change and test it thoroughly over the coming weeks.

    Cheers, Joachim.

     
  • Bernard Desgraupes

    Thank you Joachim for looking into this. I have just committed your patch to the repository (rev. 1607).

     
  • Bernard Desgraupes

    • status: open --> fixed
     
  • Bernard Desgraupes

    • status: fixed --> closed
    • Version: 9.0.2 --> 9.0.3
     

Log in to post a comment.