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

Error when passing variables to ModuleProvider items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.13.0, 1.16.0
    • Fix Version/s: 1.17.0
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      1e713049134f1826c69ac14a97c9a602c24f3399 (qbs/qbs/1.17)

      Description

      Setting properties on a ModuleProvider from within a Product does not work, if the value being assigned is a variable. Runnin QBS on tests/auto/blackbox/testdata/module-providers/module-providers.qbs also fails:

      ~/src/git/qbs/tests/auto/blackbox/testdata/module-providers$ qbs 
      Build graph does not yet exist for configuration 'default'. Starting from scratch.
      Resolving project for configuration default
      Running setup script for mygenerator
      Running setup script for othergenerator
      ERROR: /home/mardy/src/git/qbs/tests/auto/blackbox/testdata/module-providers/module-providers.qbs:9:5 Error while handling product 'app1':
      /home/mardy/src/git/qbs/tests/auto/blackbox/testdata/module-providers/module-providers.qbs:14 Can't find variable: project
      /home/mardy/src/git/qbs/tests/auto/blackbox/testdata/module-providers/module-providers.qbs:12:9 Dependency 'mygenerator.module2' not found for product 'app1'.
      /home/mardy/src/git/qbs/tests/auto/blackbox/testdata/module-providers/module-providers.qbs:14 Can't find variable: project
      

      It looks like the module-providers test is not run by the CI.

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            mardy Alberto Mardegan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes