Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-952

QtCreator crashes in case of any error in setupRunEnvironment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.5.0
    • 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.

      Attachments

        For Gerrit Dashboard: QBS-952
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            thomas.epting Thomas Epting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes