Details
-
Type:
Bug
-
Status: Open
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: 1.2.2, 1.3.0, 1.8.0
-
Fix Version/s: some future version
-
Component/s: Language Syntax & Semantics
-
Labels:
-
Environment:Win7/64, MVS10, QtCreator 3.1.2 / 3.2RC1
Win7/64, MVS14, QtCreator 4.3.0
Description
The treatment of qbsSearchPath is inconsistent. Consider this Qbs project as an example:
Project { name: "My Project" qbsSearchPaths: "qbs" MyCppApplication { files: ["main.cpp"] } }
In addition, there is a "qbs" directory, an "imports" subdirectory, and a file MyCppApplication.qbs within "imports":
import qbs 1.0 CppApplication { Group { fileTagsFilter: product.type qbs.install: true } }
Like in the example, I would expect that qbsSearchPath expansion is available within the Item where the path is defined, and in all items refered to from there. But this doesn't work. Instead, Qbs throws a message "Unexpected item type 'MyCppApplication'.
The attached archive provides a self-contained project showing this behavior (see NotWorking.qbs).