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

"This file is not part of any project" warning on qmake projects before manually launching qmake

    XMLWordPrintable

    Details

    • Commits:
      105e591060 (qt-creator/qt-creator/7.0) 105e591060 (qt-creator/qt-creator/master) 105e591060 (qt-creator/tqtc-qt-creator/7.0) 105e591060 (qt-creator/tqtc-qt-creator/master) 105e591060 (qt-creator/tqtc-qt-creator/qds-3.1)

      Description

      Hello,

      With a qmake project, I'm currently getting a warning saying "This file is not part of any project" whenever I launch a C++ qmake project and going to a file (for example a .cpp one).

      The error seems to go away if I manually launch qmake through Build > run qmake.

      One comment worth noting is that my qmake project has a root .pro file with:

      CONFIG += ordered
      TEMPLATE = subdirs
      SUBDIRS += ImagePlugin MyApp
      

      Then MyApp/MyApp.pro is very standard:

      TEMPLATE = app
      
      QT += qml quick
      CONFIG += c++17
      CONFIG += qtquickcompiler
      
      SOURCES += [...]
      HEADERS += [...]
      

      I am not using the experimental clangd for the moment, only the Clang Code Model. Qt version used by the project is 5.14.1.

      Thank you,
      Best regards,
      Louis

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            amnell Louis du Verdier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes