- 
    
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)
 
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.
| For Gerrit Dashboard: QBS-952 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 154588,2 | Do not throw exceptions from the RunEnvironment class. | 1.5 | qbs/qbs | Status: MERGED | +2 | 0 | 
| 154975,2 | Update qbs submodule. | 4.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |