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

Project-Run Executable not updating after rebuild

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 9.0.2
    • None
    • Windows

    Description

      We label our executable by appending the version number, derived from git, in the pro file.
      ```
      GIT_VER = $$system(git -C \""$$PRO_FILE_PWD"\" describe --long)
      CONFIG(debug, debug|release) {
          GIT_VER = $${GIT_VER}_DEBUG
      }
      TARGET = $${TARGET}_$$GIT_VER

      ```
      The string that git provides changes each time we commit.

      This works nicely, albeit you have to rebuild the project after a commit - qmake builds the expected executable with the new name.

      However the executable name is not propogated to the project run settings. If you invoke Run-debug it runs the previously built executable. If you open the Projects view and view the Run settings, the executable there is the previous one.

      Changing the project configuration (e.g. change to release) causes the executable to refresh.

      This is a rather annoying issue. You finish a piece of work, and commit, and start on the next item, but it appears that your new code is not working (until you realise that the executable you are running is still the one you were working on before committing !).

      Qt Creator 5.0.0 did not have this issue. Indeed if you forget to rebuild after a commit, it complains that the executable is not found.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            tim@vaquita.co.uk Timothy Pitt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes