Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13489

Warnings: SOFT ASSERT: "!filePath.isEmpty()" in file cppmodelmanager.cpp, line 696

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.3.0-beta1
    • Fix Version/s: Qt Creator 3.3.0-rc1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Linux

      Description

      • Open a project (under git)
      • Do git log, show a change
      • Open another project
      • Note warning: SOFT ASSERT: "!filePath.isEmpty()" in file cppmodelmanager.cpp, line 696

      Looking at the code, it seems that the function CppModelManager::updateVisibleEditorDocuments() unconditionally passes all of these files to the CPP preprocessor? - Shouldn't it use C/C++ files only - IIRC the code has mime type checks in other places.

      Potentially related: Working on Windows on the qtwebview project, I noticed:

      [1304] SOFT ASSERT: "d->m_cppEditors.value(filePath, 0) == 0" in file .\cppmodelmanager.cpp, line 476
      [1304] SOFT ASSERT: "d->m_cppEditors.value(filePath, 0)" in file .\cppmodelmanager.cpp, line 489
      

      But I don't remember doing git log/show there.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kosjar Nikolai Kosjar
            Reporter:
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes