https://bugs.kde.org/show_bug.cgi?id=409858

            Bug ID: 409858
           Summary: Working file sets on load create text document objects
                    for no longer existing or not yet opened files (e.g.
                    shown in Documents toolview)
           Product: kdevplatform
           Version: 5.3.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: shell
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: kosse...@kde.org
  Target Milestone: ---

Loading some older KDevelop sessions, one sometimes can see documents listed in
the "Documents" tool view which no longer exist or which have not yet been
opened in the current session (i.e. where no view is currently shown).

Next to that there are also warnings triggered in the log, like
--- 8< ---
kdevplatform.shell: Broken text-document: 
QUrl("file:///home/koder/projects/foo/src/main.cpp")
kdevplatform.shell: Broken text-document: 
QUrl("file:///tmp/kdevelop_f18822.patch")
--- 8< ---
e.g. when the ProblemReporter toolview gets triggered on document view switch
to update its view and in
ProblemReporterPlugin::updateOpenedDocumentsHighlight() iterates over all
document objects and does some sanity check with
KDevelop::TextDocument::isTextDocument(), which then triggers those warnings.

Looking at the sessionrc file of such a session, one can see those files being
listed as part of the data of a working file set, e.g.
--- 8< ---
[Working File Sets][review_5752676|Review]
Active View=file:///tmp/kdevelop_f18822.patch
View 0=file:///tmp/kdevelop_f18822.patch
View 1=file:///home/koder/projects/foo/src/main.cpp
View Count=2
--- 8< ---

Dumping findings here for now, myself yet needs to wrap brain around working
sets code & design one day...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to