Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.4.3, 1.4.4, 1.4.5, 1.5.0
-
None
-
Reproduced with QtCreator 3.5.x, 3.6.x and 4.0 beta1 on Windows7.
-
bc5ef731d64edd6d2f152a7c68b6ad46efd7066c (qbs), e6a64d40ef66f1a66e195d5763a58eed09ce385c (QtC)
Description
In case there is any non-syntactical problem with a module's setupRunEnvironment script, QtCreator crashes immediately. As a trivial example, use a module that has a setupRunEnvironment script like this:
setupRunEnvironment: { spark }
The reason for the crash is that qbs::RunEnvironment::runEnvironment throws a qbs::ErrorInfo exception ("Error while setting up run environment: ReferenceError: Can't find variable: spark") that is never catched in QtCreator.
This is supposed to be a bug in Qbs, since the public API is designed in a way that no exceptions must ever pass the API boundary.