Re: [Qbs] How to use 'qbs' in a JavaScript function?

2023-09-05 Thread Christian Kandeler via Qbs
On 9/5/23 12:08, Jochen Becher wrote: until qbs 1.9 the following works: Not on purpose, though. Quite a number of things "worked" that shouldn't have, as there was a lot of scope pollution. import qbs 1.0 import import 'utils.js' as Utils Probe { id: workspaceRootDetector

[Qbs] How to use 'qbs' in a JavaScript function?

2023-09-05 Thread Jochen Becher
Hi, until qbs 1.9 the following works: import qbs 1.0 import import 'utils.js' as Utils Probe { id: workspaceRootDetector property path rootDir configure: { rootDir = Utils.detectWorkspaceRoot(qbs) } } Since qbs 2.0.2 (from QtCreator 10.0.2), I get