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

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 3.3.0-rc1
    • Qt Creator 3.3.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • 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

            kosjar Nikolai Kosjar
            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