Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1117

Deleting a file that defines a QObject can nearly brick Qt VS Tools and, by extension, MSBuild

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 2.10.1 (rev.02)
    • General
    • None
    • Windows

    Description

      I just deleted a file that defined a QObject class (i.e. a subclass of QObject containing the Q_OBJECT) macro, because I didn't need that file or several others anymore.

      When attempting to build, I now get the following error:

      7> moc: FILE_PATH_HERE\central_options_manager.h: No such file 

      This error completely halts the build process. If there's a way to tell MOC that this file isn't supposed to exist, I can't seem to find it.

      Another potential symptom of this problem is IntelliSense suddenly losing the ability to properly interpret all modern C++ features (e.g. `namespace foo::bar`, `requires`, etc.), showing false-positive errors for them in any files it hasn't already parsed.

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            davidjcobb David Cobb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes