Bug 189159 - bad error message in "log and messages" view
Summary: bad error message in "log and messages" view
Status: REPORTED
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.93
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-08 22:23 UTC by Jonas
Modified: 2022-12-20 21:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas 2009-04-08 22:23:08 UTC
Version:           2.0.81 svn (using KDE 4.2.2)
Compiler:          gcc/g++ 4.3.2 
OS:                Linux
Installed from:    Compiled From Sources

the error messages shown in the "log and messages" view are sometimes not very useful, due to bad output parsing. a minimal example is the following:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{align}
\asdf
\end{align}
\end{document}

when compiling this, latex outputs

>! Undefined control sequence.
><argument>  \asdf 
>                 
>l.7 \end{align}

the message view shows only

>./file.tex:7:Undefined control sequence \end{align}

which is misleading, because the `align' is defined, and the `\asdf' is the problem.

When you change "align" for example to "equation", then it works. So the problem may be particular to environments of amsmath.
Comment 1 Mikael Öhman 2012-11-30 18:44:10 UTC
Not necessarily specific to amsmath environments.
See 
http://tex.stackexchange.com/questions/84983/unhelpful-misleading-errors-in-amsmath-environments
for some more details.
Another example of a similar problem is;
"\newcommand{\foo}{\somethingundefined}
This suffers a similar problem \foo"
which will show that \foo is undefined.

The line directly after the starting line (the line with "!") should be printed in the message window. This will sometimes coincide with the line number (equation), and sometimes not (align), so some adjustments are necessary in LatexOutputFilter::detectError

For the line number, we're SOL due to bad design choices in TeX.
Comment 2 Andrew Crouthamel 2018-11-09 01:00:32 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-18 03:23:16 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2022-12-20 07:49:44 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Jonas 2022-12-20 21:59:54 UTC
The problem persists in kile 2.9.93 on ubuntu 22.04