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

Cleaning 3.5 deletes files in qmlpuppet/interfaces on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • Qt Creator 3.5.0
    • Building Qt Creator
    • None
    • Windows (7 and 10)
      Qt 5.5
      MSVC 2013 (edit from 2015 - finger trouble)

    Description

      I started from a clean environment: Uninstalled Qt completely and installed Qt 5.5.
      Did a clean git checkout of branch 3.5 but building fails due to 'clean' deleting all files in "share/qtcreator/qml/qmlpuppet/interfaces".

      I can consistently recreate with the following steps:
      I have checked out 3.5 using the following: (in git Bash)

      /c/Development/QtCreator/3.5 (3.5)
      $ git status
      On branch 3.5
      Your branch is up-to-date with 'origin/3.5'.
      $ git checkout .
      $ git clean -dxf
      Removing qtcreator.pro.user
      $ ls share/qtcreator/qml/qmlpuppet/interfaces
      commondefines.h  nodeinstanceclientinterface.h  nodeinstanceserverinterface.cpp
      interfaces.pri   nodeinstanceglobal.h           nodeinstanceserverinterface.h
      $ git log
      commit 63d182f052b75b3b7e46a07d63811002e1acd921
      Author: hjk <hjk@theqtcompany.com>
      Date:   Thu Aug 13 15:29:14 2015 +0200
      ...
          Change-Id: I6cf714af697ab4eebd7eb0ae0ea37e516b3ea635
      

      I then open the Qt 5.5 command line and do the following from there:

      > "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
      > cd c:\Development\QtCreator\builds
      > mkdir QtC3.5_Qt5.5_msvc2013-Release
      > cd QtC3.5_Qt5.5_msvc2013-Release
      > dir
       Volume in drive C is TI30873800A
       Volume Serial Number is 2EDC-2ABA
       Directory of c:\Development\QtCreator\builds\QtC3.5_Qt5.5_msvc2013-Release
      2015/08/14  09:40 PM    <DIR>          .
      2015/08/14  09:40 PM    <DIR>          ..
                     0 File(s)              0 bytes
                     2 Dir(s)  673 151 348 736 bytes free
      > qmake ..\..\3.5\ -r -spec win32-msvc2013 -config release
      ... # This takes a minute or 2 but completes without errors
      > dir ..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces
       Volume in drive C is TI30873800A
       Volume Serial Number is 2EDC-2ABA
       Directory of c:\Development\QtCreator\3.5\share\qtcreator\qml\qmlpuppet\interfaces
      2015/08/14  09:42 PM    <DIR>          .
      2015/08/14  09:42 PM    <DIR>          ..
      2015/08/14  09:42 PM             2 170 commondefines.h
      2015/08/14  09:42 PM               246 interfaces.pri
      2015/08/14  09:42 PM             2 842 nodeinstanceclientinterface.h
      2015/08/14  09:42 PM               282 nodeinstanceglobal.h
      2015/08/14  09:42 PM             8 791 nodeinstanceserverinterface.cpp
      2015/08/14  09:42 PM             3 812 nodeinstanceserverinterface.h
                     6 File(s)         18 143 bytes
                     2 Dir(s)  673 083 793 408 bytes free
      > nmake clean
      ... # Takes a minute and deletes a lot of things (tries to at least)
      > dir ..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces
       Volume in drive C is TI30873800A
       Volume Serial Number is 2EDC-2ABA
       Directory of c:\Development\QtCreator\3.5\share\qtcreator\qml\qmlpuppet\interfaces
      2015/08/14  09:47 PM    <DIR>          .
      2015/08/14  09:47 PM    <DIR>          ..
                     0 File(s)              0 bytes
                     2 Dir(s)  673 088 552 960 bytes free
      

      As one can see, after the clean command the interfaces folder is empty. Trying to build Qt Creator then fails with the error "Dependent 'commondefines.h' does not exist" which was in the folder before the clean.

      If I do not do a clean or rebuild, but just a build, the build completes but the resulting Qt Creator is broken (Welcome screen is blank and other issues). See attached screenshot of this.

      As I have mentioned, this is a clean environment. I first had the issue on a re-install of Qt on Windows 7. I then did a clean OS upgrade to Windows 10 but the issue persisted. My Qt installation is as seen in the attached screenshot of my Qt Maintenance App.

      I have followed the exact same steps but on a clean checkout of Qt Creator 3.4 branch and do not have the issue. The files are not deleted and the build completes without errors.

      PS:

      • Using command line since it is easiest to show exact steps: commands were copied from what Qt Creator did.
      • Doing a clean first since it shows the quickest what the issue is.

      Attachments

        1. BrokenQtCreator.png
          34 kB
          Carel Combrink
        2. Makefile.static.Release
          535 kB
          Carel Combrink
        3. Makefile.static.Release.working
          487 kB
          Oliver Wolff
        4. QtMaintenance.png
          36 kB
          Carel Combrink
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            TheBadger Carel Combrink
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes