bugLaTeX semantic checker - Bugs: bug #51179, A macro `startPage' produces...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51179: A macro `startPage' produces inadequate error messages

Submitter:  Artem Shinkarov <tema>
Submitted:  Sun 04 Jun 2017 04:14:19 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  gvol
Open/Closed:  Closed

Tue 01 Aug 2017 03:27:29 AM UTC, comment #2: 

I have changed ConTeXt tracking to use different warnings and so they can be turned off for LaTeX.

Ivan Andrus <gvol>
Group administrator
Tue 18 Jul 2017 02:47:44 PM UTC, comment #1: 

Ah, yes.  The handling of \startXXX macros is to support ConTeXt.  I suppose I'll have to have some way to detect if it's LaTeX or ConTeXt rather than just doing both.  At the very least I should be able to change the numbers so that you can turn off ConTeXt warnings if you don't care.

Ivan Andrus <gvol>
Group administrator
Sun 04 Jun 2017 04:14:19 PM UTC, original submission:  

Here is a short document:
\documentclass{minimal}
%\newcommand\startPage[1]{Test #1}
\begin{document}
\startPage{1}
\end{document}

When I run chktex, I get:
$ chktex test.tex
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with PCRE regex support.
Warning 9 in test.tex line 5: `Page' expected, found `document'.
\end{document}
^^^^
Warning 15 in test.tex line 3: No match found for `document'.
\begin{document}
^^^^^^
No errors printed; 2 warnings printed; No user suppressed warnings; No line suppressed warnings.
See the manual for how to suppress some or all of these warnings/errors.

This seems weird and it seems that one cannot even turn this check off.


Artem Shinkarov <tema>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gvol (Posted a comment)
  • -email is unavailable- added by tema (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-01 gvol StatusNone Fixed
        Open/ClosedOpen Closed
    2017-07-18 gvol Assigned toNone gvol

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code