[QBS] ReferenceError: Can't find variable: type

Denis Shienkov denis.shienkov at gmail.com
Wed Jul 15 10:32:52 CEST 2015

Hi all.

Can someone look on this bug: https://bugreports.qt.io/browse/QBS-832 ?

There is an epic bug which can be reproduced so:


import qbsimport qbs.ModUtils

Module {
    property stringList example: type.contains("bla") ? ["123"] : ["456"]

=== test.qbs ==

import qbs

Project {
    Product {
        name: "Bar"
        Depends {name: "foo" }
        foo.example: ["789"] // <<< this fails    }

In this case unable to open the QBS project at all, because can not parse:

"ReferenceError: Can't find variable: type"

This does not work on Windows 8x32, QtCreator 3.4.2.. But works with
QtCreator 3.4.1.

What is it? :((

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150715/1b9ffff6/attachment.html>

More information about the Qbs mailing list