Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Invalid
-
Affects Version/s: 1.11.0
-
Fix Version/s: None
-
Component/s: Language Syntax & Semantics
-
Labels:None
-
Environment:Qbs 1.11.0, QtCreator 4.6.0, Windows 10
Description
Accessing a module property in setupBuildEnvironment (and setupRunEnvironment) is not possible anymore. The example below used to work in Qbs 1.10 and before:
import qbs 1.0 Module { property int a: 42 setupBuildEnvironment: { console.info(a) } }
Now with Qbs 1.11.0 an Error running setupBuildEnvironment script for product 'prod': ReferenceError: Can't find variable: a is thrown in line 6 when trying to build
import qbs 1.0 Product { Depends { name: "mod" } }