Bug 233667

Summary: Document not detected as Latex root document when opening project
Product: [Applications] kile Reporter: Andreas Wenning Rangholm <awen>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED FIXED    
Severity: normal CC: andrea.turrini, mdspam
Priority: NOR    
Version: 2.1b4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Wenning Rangholm 2010-04-08 00:32:34 UTC
Version:           2.1b4 (using KDE 4.3.5)
OS:                Linux
Installed from:    Ubuntu Packages

When opening a saved project, the root document is not detected as a Latex root document.

This means that the "Files and Projects" list does not contain any documents with a red icon; and the files the root document includes are not made as sub-files in the list. Furthermore kile complains about the document not being a root document when, even though it is.

Opening the kile configuration and clicking OK fixes the problem, and the document is now correctly detected as a root document.

The problem was not present in beta 3.
It appeared somewhere between svn revision 1079982 and 1097341.
Comment 1 Andreas Wenning Rangholm 2010-04-09 11:11:25 UTC
Reverting revision 1086758 fixes the problem.
Comment 2 Marcel Dischinger 2010-04-13 15:35:48 UTC
I have the same problem.
Additionally, when I define the current file as the Master Document manually (in the settings menu), this setting is not preserved across restarts of kile.
Comment 3 Michel Ludwig 2010-04-25 22:21:43 UTC
SVN commit 1118758 by mludwig:

Ensure that all project items are parsed when they are opened, even if they aren't visible later on.
This is necessary to identify the correct LaTeX root document.

BUG: 233667


 M  +5 -1      kiledocmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1118758
Comment 4 Michel Ludwig 2010-04-25 22:23:54 UTC
(In reply to comment #2)
> Additionally, when I define the current file as the Master Document manually
> (in the settings menu), this setting is not preserved across restarts of kile.

The issue with the master document setting is tracked in bug report 222029. Thanks.
Comment 5 Michel Ludwig 2010-04-29 10:58:00 UTC
*** Bug 235698 has been marked as a duplicate of this bug. ***