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

outer.concat fails inside Properties block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 0.3
    • General
    • None
    • openSUSE 12.3, Qt 4.8.4
      Windows 7, Qt 4.8.3

      outer.concat() fails inside a Properties block when 'outer' depends on a property set in the outside scope.

      ERROR: F:\code\cpp\code-tests\qbs\outerconcat\outerconcat.qbs:14:21 TypeError: Result of expression 'outer.concat' [undefined] is not a function.

      If I do print(outer) inside the Properties block I get:

      ReferenceError: Can't find variable: foo

      Works fine inside a Group block.

      Example:

      import qbs 1.0
      
      CppApplication {
        name: "outerconcat"
      
        Depends { name: "cpp" }
        
        files: [
          'main.cpp'
        ]
      
        property string foo: "foo"
        
        cpp.includePaths: [ foo ]
        
        Properties {
          condition: true
          cpp.includePaths: outer.concat([ "bar" ])
        }
      }
      

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

            jbornema Joerg Bornemann
            jonas512 Jonas Andersson Hultgren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes