Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.9
-
None
Description
The filePath of a QQmlJSScope can hold a variety of different values. These values were observed for various types:
- Path to a .qml file in the source folder
- Path to a .qml file in the build folder
- "private/<...>" relative includes
- resource paths
- A simple file name
- Empty string
The content of filePath is inconsistent and cannot really be relied upon.
Maybe a better solution would be to introduce a data structure containing all the known paths of a type. This way the most adequate information can be used.