Feature SuggestionsBetter expl3 support for warning and error messages

Suggestions and discussions for new TeXnicCenter features
Post Reply
baghira
Posts: 1
Joined: Wed Feb 25, 2015 11:00 am

Better expl3 support for warning and error messages

Post by baghira »

An error message in expl3 is defined, for example in the acro package, as follows:

Code: Select all

\msg_set:nnnn { acro } { undefined }
  %{ You've~requested~acronym~`#1'~but~it~seems~that~it~was~never~defined! }
  {
    You've~requested~acronym~`#1'~\msg_line_context: \c_space_tl but~you~
    apparently~haven't~defined~it,~yet!~Maybe~you've~misspelled~it?
  }
This creates for an error message the following output in the log file:

Code: Select all

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! acro error: "undefined"
! 
! You've requested acronym `foo' but it seems that it was never defined!
! 
! See the acro documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  
                                                  
l.55 \ac{foo}
             
|'''''''''''''''''''''''''''''''''''''''''''''''
| You've requested acronym `foo' on line 55 but you apparently haven't defined
| it, yet! Maybe you've misspelled it?
|...............................................
As a warning message it is written in the log as follows:

Code: Select all

*************************************************
* acro warning: "undefined"
* 
* You've requested acronym `foo' on line 55 but you apparently haven't defined
* it, yet! Maybe you've misspelled it?
*************************************************
The problem is how these messages are represented in TeXnicCenter. The error message is counted as 7 errors, one for each line in the report and one for each empty line between the text (see the attached picture). The additional text with the line is not shown.
For a warning there is only one the following line viewed: "undefined". No package name, no additional text what this should mean.

It would be really helpful when one could select the details of the shown messages and when one error would be represented just as one error. And maybe the empty lines should be removed completely because this makes it very big.
Attachments
Acro-Errormessage.JPG
Acro-Errormessage.JPG (23.51 KiB) Viewed 16024 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Better expl3 support for warning and error messages

Post by Johannes_B »

Hi and welcome,

i suggst to make a feature request at the TXC website. This might be an even better place to post. ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply