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

Moc'ing the file generated by repc returns a parse error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 3.3.0, 3.3.1
    • None
    • Qt VS Tools 3.3.0 (rev.46)

    Description

      Building projects with rep files got broken again between development release rev.33 and rev.46.

      Output with rev.33:

      1> Qt/MSBuild: 3.3.0.33
      1>Reading Qt configuration (C:/Qt/Qt5.15.11/5.15.11/msvc2022_64_Cas/bin/qmake)
      1> Qt: 5.15.11
      1>moc RepcTest\x64\Debug\qt\repc\rep_RepcTest_replica.h
      1>moc_rep_RepcTest_replica.cpp
      1>RepcTest.vcxproj -> D:\code\tmp\RepcTest\x64\Debug\RepcTest.dll

      Output with rev.46:

      1> Qt/MSBuild: 3.3.0.46
      1>Reading Qt configuration (C:/Qt/Qt5.15.11/5.15.11/msvc2022_64_Cas/bin/qmake)
      1> Qt: 5.15.11
      1>moc RepcTest\x64\Debug\qt\repc\rep_RepcTest_replica.h
      1> D:\code\tmp\RepcTest\RepcTest\x64\Debug\qt\repc\rep_RepcTest_replica.h(20): Parse error at "("
      1>C:\Users\User\AppData\Local\QtMsBuild\qt_work.targets(138,5): error MSB4181: Die Aufgabe "QtRunWork" hat FALSE zurückgegeben, jedoch keinen Fehler protokolliert.
      1>Die Erstellung des Projekts "RepcTest.vcxproj" ist abgeschlossen -- FEHLER.

       

      I've attached a minimal test project.

      Attachments

        Issue Links

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

          Activity

            People

              ali.demiralp Ali Can Demiralp
              anoymouserver anoymouserver
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes