Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
6.7.2
-
None
-
-
d16bcf083 (dev), 3557dc846 (6.8)
Description
When running qmllint on our sources, I get for one of the files the following block of warnings:
[build] Warning: /home/user/Src/Project/qml/MySettingsPage.qml:23:1: Warnings occurred while importing module "QtQuick.Dialogs": [import] [build] import QtQuick.Dialogs [build] ^^^^^^ [build] --- [build] Warning: Ambiguous type detected. FolderDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. ColorDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. ColorDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. ColorDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. MessageDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. ColorDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FileDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FontDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. MessageDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FontDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialogDelegate 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialogDelegate 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FontDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FileDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FontDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. MessageDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FileDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FileDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialogDelegate 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. MessageDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialog 6.0 is defined multiple times. [import] [build] Warning: Ambiguous type detected. FolderDialogDelegate 6.0 is defined multiple times. [import] [build] --- [build]
The file can be a simple as the following, to trigger the warning:
import QtQuick.Dialogs
Item {
id: root
}
The warning is printed only on the first file that imports QtQuick.Dialogs, and not printed later in the linting for other files that also have that import.
Are we doing anything wrong?
Important sub-goal: It would be really great if qmllint could indicate where the duplicate definition is encountered. Otherwise it's virtually impossible to track down - I've spent an hour and have no idea where this may be coming from.
Attachments
Issue Links
- duplicates
-
QTBUG-118588 qmllint: Nondeterministic output when multiple files are linted in one invocation
- Closed
- is blocked by
-
QTBUG-104091 Restructure the QtQuick.Dialogs module to make it friendlier for qml compiler
- In Progress
For Gerrit Dashboard: QTBUG-128868 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
590614,6 | QmlCompiler: Do not propagate warnings of dependencies | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
593673,2 | QmlCompiler: Do not propagate warnings of dependencies | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |