Bug 407578

Summary: Correct display of Latex compilation error with math in align environment
Product: [Applications] kile Reporter: Christoph <chris>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 2.9.92   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christoph 2019-05-16 05:58:46 UTC
Kile doesn't parse a LaTeX error message correctly.

Minimal example:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
 \limit % the correct command would be \lim
\end{align}
\end{document}

In the Messages pane, the clickable link for the error says "tmp.tex:6:Undefined control sequence \end{align}", while actually the problem is the \limit

However the LaTeX output contains 
! Undefined control sequence.
<argument>  \limit 
                   
l.6 \end{align}


It would be helpful for Kile to parse the error message better. On a side note, the text in the messages pane is not selectable (nor copy-pasteable).

Note that using an equation environment instead of align, the error is displayed correctly.