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

Error message shows wrong source location when properties are missing in profile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 1.5.0
    • 1.1.0
    • General
    • None
    • 51d6717b4da23b85cbfbca3abf7bc492c1abe4ba

    Description

      For instance, it happens from time to time that users try to build a Qt project with their cpp profile, so most Qt properties are undefined. For instance:

      $ qbs -f ../qtcreator-master profile:gcc
      /home/christian/dev/qtcreator-master/src/plugins/help/help.qbs:30 TypeError: Result of expression 'version' [undefined] is not an object.
      

      There is no such expression in line 30 of the help.qbs file. However, there is such an expression on line 30 of Qt/core.qbs, which leads me to believe that qbs just uses the wrong file name when constructing the error location.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              kandeler Christian Kandeler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes