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

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes