Bug 392247

Summary: Structure tree construction does not ignore sectioning within comment environment
Product: [Applications] kile Reporter: Eyal Rozenberg <eyalroz1>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Eyal Rozenberg 2018-03-23 21:53:28 UTC
I'm  using Kile 2.1.3 (on Mint 18.3).

After everything else in my document (report class), I have the following code:

\begin{comment}
\appendix
\chapter*{Appendix}
\section*{Frobnicate the bar}
Bunch of text here, etc. etc.
\endcomment}

... and this shows up as part of the document structure tree, which it really shouldn't - especially seeing how the comment environment is identified and its contents is grayed-out.

This bug seems very related to bug 63121, which was about line comments (text after the % symbol). However, that one was resolved 15 years ago. In fact, if I add line comments within the comment environment, the appendix and the section disappear from the structure tree; so it really looks like they're treated like a normal part of the document.
Comment 1 Justin Zobel 2022-11-18 04:30:21 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 2 Eyal Rozenberg 2022-11-18 09:12:55 UTC
Still seeing this issue, now with Kile 2.9.93 .