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

Error evaluating properties of qbs in Group condition when condition of product is false and qbs.install is defined in the Group

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 1.3.2
    • 1.3.0
    • None
    • ebc11e4612444bce428bbacb91f0f26906666749

      import qbs
      
      Product {
          condition: false
      
          Group {
              condition: !qbs.targetOS.contains("__undefined__")
      
              // error occurs if this property's PRESENT at all, no matter the value
              // comment it out and the error goes away...
              qbs.install: undefined
          }
      }
      

      Observe:

      ERROR: /private/tmp/QBS-671/QBS-671.qbs:7 TypeError: Result of expression 'qbs.targetOS' [undefined] is not an object.
      

      (I originally discovered this by having Qt as an optional dependency and setting the product's condition to Qt.core.present so my project overall can build without Qt.)

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

            jbornema Joerg Bornemann
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes