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

target->run does not build a target

    XMLWordPrintable

Details

    • 752fdef48 (15.0)

    Description

      there is a small inconvenience with "context menu" -> "run" in the project view:

      qtcreator builds the project as configured. this means that the target that one is running via "context menu" -> "run" is not necessarily built. most notably, the target is not built when the build targets contain the "Current executable", which is the context menu functionality doesn't seem to change.
      this can lead to the case where a stale target is executed, which can be a lovely source of confusion when debugging.

      suggestions:

      • build executable before running when "run" is selected from the context menu (principle of least surprise, my preferred approach).
      • show a dialog to ask the user for input
      • switch "current executable" permanently (not sure if it's the best UX)
      • switch "current executable" temporarily when triggering the build, switch back to the previous one after the build has started.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-31386
          # Subject Branch Project Status CR V

          Activity

            People

              cadam Cristian Adam
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes