Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2, 6.5, 6.6
-
None
-
6dda607f6 (dev), bfa3852bc (6.6)
Description
"inputFile" records in the generated metatypes.json files use the file name as the value. This is ambiguous since using subdirectories we can use the same file name but specify different content. The example project reproduces the invalid behavior. subdir/myclass.h end's up as "inputFile": "myclass.h" record in the metatypes.json file, so qmltyperegistrar generates the single include record for myclass.h and as the result compilation fails.
The attached example is quite trivial, but in real projects subdir might reflect the inner namespace structure(this can happen in QtProtobuf for instance), so we definitely should consider subdirectories when generating metatypes.json.
I suggest to add extra record to not break the dependent user projects, if they exist.
Attachments
Issue Links
- relates to
-
QTBUG-114077 Package sub-folders generation doesn't work with QML argument
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-115499 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
492597,4 | Fix the GENERATE_PACKAGE_SUBFOLDERS option for Qml modules | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
492846,2 | Fix the GENERATE_PACKAGE_SUBFOLDERS option for Qml modules | 6.6 | qt/qtgrpc | Status: MERGED | +2 | 0 |