Bug 233667 - Document not detected as Latex root document when opening project
Summary: Document not detected as Latex root document when opening project
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.1b4
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
: 235698 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-08 00:32 UTC by Andreas Wenning Rangholm
Modified: 2010-04-29 10:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***