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

Can't assign value in Properties item to a property defined in the module

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.10.0
    • 1.9.1
    • General
    • None
    • macOS 10.9 & 10.10
    • 8f8ea38dfd9c76092917fe63e7a132b00c456739

    Description

      This code fails with error: 

      ModuleTest.qbs:5: error : ReferenceError: Can't find variable: testB

      when assigning a value to testA in the Properties item.

       

       

      import qbs
      CppApplication {
          files: "main.cpp"
          Depends { name: "test" }
          //test.testB: true
      }
      

       

       

       

      - module "test", ModuleTest.qbs -
      import qbs
      Module {
          condition: true
      
          property bool testA: false
          property bool testB: false
      
          Properties {
              condition: testB
              testA: true
          }
      }
      

       

      More generally, qbs fails when assigning a value in a Properties item to a property defined in the same file (only in modules, it don't fail in products) with the error "can't find variable: <variable used in Properties's condition>"

       

      Seems a bit related to QBS-1239

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            bbenj Balga Benjamin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes