On 11/18/2013 04:41 PM, Epting, Thomas wrote:
> I'm currently testing QtCreator 3.0 beta (on Windows) and noticed that
> using qbs.getenv() in qbsSearchPaths is not working. For example:
>
>      qbsSearchPaths: qbs.getenv("MYROOT") + "/mypath/qbs"
>
> In this case I get an error message: "ReferenceError: Can't find
> variable: qbs".

Ouch.

> In QtCreator 2.8.1, I've used moduleSearchPath instead,
> which had no problems with qbs.getenv(). As a workaround, I can resolve
> getenv() manually and use its value in the string constant directly.
> Also, qbs.getenv() is working perfectly in other cases in the same file.
>
> Is this working as designed?

No, I guess this is one of those pesky initialization order problems.

 > Or is it a known/new issue? In the latter case, I could create a bug 
report in Jira.

Please do.


Thanks,
Christian



_______________________________________________
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to