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

Imports from non-"qbs" locations doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • 1.3.0
    • 1.1.0
    • General
    • None
    • Config:
      {quote}
      preferences.qbsPath: /usr/share/qbs
      preferences.qbsSearchPaths: /usr/share/qbs
      {quote}

    Description

      /usr/share/qbs/imports/qbs/base/MyApp.qbs

      Product 
      { 
      property string myProperty 
      }
      

      bugreport.qbs

      import qbs //this work
      
      MyApp 
      {
      	property string bundleExtension
      	type: qbs.targetOS.contains("darwin") ? "applicationbundle" : "application"
      	files: ["main.cpp"]
      }
      

      ===========================================
      /usr/share/qbs/imports/myimport/base/MyApp.qbs

      Product 
      { 
      property string myProperty 
      }
      

      bugreport.qbs

      import myimport //this doesn't work
      
      MyApp 
      {
      	property string bundleExtension
      	type: qbs.targetOS.contains("darwin") ? "applicationbundle" : "application"
      	files: ["main.cpp"]
      }
      

      Output:

      Warning: preferences.qbsPath is deprecated, use preferences.qbsSearchPaths instead.
      No build graph exists yet for this configuration.
      Resolving project for configuration qtqbs-debug
      ERROR: ----/bugreport.qbs:6:9 Property 'files' is not declared.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            brerrabbit Max Tim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes