Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-95

A spurious error is shown when doing qbs config --global in a directory with multiple qbp files

    XMLWordPrintable

Details

    • f72edf66da583908a1a503da8eb6421571c39cb2

    Description

      It is permissible to run qbs config --global from any directory:

      D:\>qbs config --global --list
      global variables:
      defaults/platform = mingw32
      qt/default/path = D:\QtSDK-1.1\Desktop\Qt\4.7.2\mingw
      qt/x64/path = D:\QtSDK-1.1\QtSources\4.7.2-msvc2010-x64
      

      but it outputs an error if done from a directory with multiple .qbp files (and a -f option isn't being used):

      D:\workitems\qbs-bugs>qbs config --global --list
      ERROR: Multiple project files found in 'D:\workitems\qbs-bugs'.
      Please specify the correct project file using the -f option.
      global variables:
      defaults/platform = mingw32
      qt/default/path = D:\QtSDK-1.1b\Desktop\Qt\4.7.2\mingw
      qt/x64/path = D:\QtSDK-1.1b\QtSources\4.7.2-msvc2010-x64
      

      Providing --global is specified (and --local isn't) there shouldn't be an error even if there are multiple .qbp files.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            tomsci Tom Sutcliffe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes