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

Submitted by:  Artem Shinkarov <tema>
Submitted on:  Sun 04 Jun 2017 04:14:19 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ivan Andrus <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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Aug 2017 03:27:29 AM UTCgvolStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 18 Jul 2017 02:47:44 PM UTCgvolAssigned toNone=>gvol

    Back to the top


    Powered by Savane 3.1-cleanup1