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