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

wrong build directory when using qbs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.12.0
    • None

    Description

      When using cmake or qmake the build directory is named after the source directory, with qbs the build dir is named after the Qbs project file.

      This is a problem when you use git worktree as you often end up with copies of project side by side. When using Qbs this workflow is broken as all worktree use the same build dir.

      When using Qbs, the build directory should be named after the source directory (like qmake and CMake do), not the project name.

       

      How to reproduce:

      • Using QtC, create a project, select Qbs as build system, you end up with 'untitled1/untitled1.qbs', build it.
      • Build the first project.
      • make a copy side by side, eg cp -a untitled1 untitled2
      • Delete untitled2/untitled1.qbs.user
      • Open the second project
      • QtC report an error: 'cannot lock build graph ...'

      Expected behaviour:
      QtC can open the second project
      The build directory of the second project should be different from the one used for the first project.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            christian_gagneraud_navico Christian Gagneraud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes