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

AddIn changes moc exclude paths in vcxproj to incorrect configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 2.1.1
    • General
    • None
    • Windows 7 x64, Visual Studio 2015 Professional Update 3

    Description

      See the attached diff screenshot. The problem occurred when I edited a .h file that had a Q_OBJECT macro in it and saved. It does NOT occurr, when the AddIn is disabled. I've been having this problem since at least 2.1.0... If I could create a minimal example, I would, but it seems to only happen on rather large projects. A lot of our configuration is done through .props files, so maybe that is a part of the problem.
      EDIT: This does happen reproduceably when SAVING. It does not matter wether I add signals or slots. I added a simple non-virtual method to the header file.
      I skipped through the DocumentSaved() function in http://code.qt.io/cgit/qt-labs/vstools.git/tree/src/qtvstools/DteEventsHandler.cs and it might have something to do with the "hasDifferentMocFilesPerConfig" flag or the config not being read correctly, as we have different GenerateFiles folders per configuration...

      Attachments

        1. diff.png
          diff.png
          271 kB
        2. filter path.PNG
          filter path.PNG
          8 kB

        Issue Links

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

          Activity

            People

              mecfc Miguel Costa
              kiro Kim
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes