[Qbs] WARNING: Suspicious use of qbs.TextFile during property evaluation.

Карелин Павел hkarel at yandex.ru
Mon Jan 16 16:51:04 CET 2017


Hello,

Today I went to QBS version 1.7.1 (previously 1.6.1)
When I build the project I began to receive the following message:

WARNING: Suspicious use of qbs.TextFile during property evaluation. 
Should this call be in a Probe instead?
          at getVersions(filePath = 
'/home/hkarel/CProjects/27FacesRetail/VERSION') in 
/home/hkarel/CProjects/27FacesRetail/qbs/imports/QbsUtl/qbsutl.js
          at <anonymous>() in 
/home/hkarel/CProjects/27FacesRetail/27fbase.qbs:9
          at <eval>() in /home/hkarel/CProjects/27FacesRetail/27fbase.qbs:39
...

How can I remove/hide this warning?  In this case, I am quite 
consciously call qbs.TextFile to calculate the value of the property. I 
could use a 'probe', but at the 'project' level it can not be done.

--
BR, Pavel Karelin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20170116/76618f1a/attachment.html>


More information about the Qbs mailing list