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

Products and modules with the same name are not an error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.5.1
    • None

    Description

      Consider the following:

      /// test.qbs
      import qbs
      Project {
          qbsSearchPaths: ["qbs"]
          Product { name: "test" }
          Product { name: "test2"
              Depends { name: "test" }
              test.foo: 6
          }
      }
      
      /// qbs/modules/test/test.qbs
      import qbs
      Module {
          property int foo: 2
      }
      

      This results in the following:

      No build graph exists yet for this configuration.
      Resolving project for configuration default
      WARNING: /private/tmp/test.qbs:6:12 Property 'foo' is not declared.
      Setting up build graph for configuration default
      Build done for configuration default.
      Building for configuration default

      Instead, this should be an error, because the dependency on "test" is ambiguous.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes