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

wrong condition scope for subprojects

    XMLWordPrintable

Details

    • a5c93306557cfd69f6e6d7181eb4c7d884af4d41

    Description

      The following example results in an error message "ReferenceError: Can't find variable: qbs" while evaluating the condition of the Properties item of the property valueList.

      import qbs 1.0
      Project {
          name: "projectProperties"
          property stringList valueList: [ "v1", "v2" ]
          Properties {
              condition: qbs.targetOS.contains("windows")
              valueList: [ "v1", "v3" ]
          }
          Project {
              name: "A"
              Product {
                  property var debugMe: {
                      for ( var i in project.valueList )
                          print(project.valueList[i]);
                  }
              }
          }
      }
      

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes