-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable qmllint in qt6 builds. #4664
base: main
Are you sure you want to change the base?
Conversation
Yes, it is expected. I didn't have time to fix every qmllint warning. |
Btw, I don't think this should be merged. There is no reason to add the linter to the |
Any Idea why CI is not running? I will try a rebase. |
Ci is working now:
I can confirm the same issue here on Ubuntu Focal. Any ideas? Do you know which parent in the QmlWaveformOverview class defines the "DefaultProterty"? It looks like qmllint does not find the parent QQuickPaintedItem which should be part of Qt6::Quick. I expect the Mixxx.MathUtils issue to be a similar one. |
That issue is a Qt bug: https://bugreports.qt.io/browse/QTBUG-100326 |
What are the pros and cons to have qmllint running with the all target? Compared to the qmllint during the pre commit hook, this one is called from the correct toolset and using the correct include paths. It only runs like a compiler whenever a qml file has been changed. On the contra side we have the issue that it currently produces false positives that unnecessary fail a build. I think If we like to rely on qmllint, we should make it happy all the time anyway. Would it be an option to run the qmllint make target during the commit hook? Sounds scary ... What do you think? |
It turns out that the pre-commit hook calls qmllint from qt5 which produces false positives. |
Arch CI failure is fixed here: #4680 |
This won't work. Only files that are built as qml modules are linted, but the majority of the qml code belongs to the skin which is not a module. |
What would be the solution? I think it would be straight forward to add a module for the skin as well. We can skip it during linking and use the plain qml files when installing Mixxx. This way qt/cmake will take care that the correct call to qmllint is issued. |
This PR is marked as stale because it has been open 90 days with no activity. |
This issues false positives with qml for Qt6
QT6 build fails now with:
is this expected? |
I am still struggling to build Mixxx wit Qt 6 on ubuntu focal.
It turns out that the issues at runtime are with the qml files reported by qmllint.
Has One an idea how to fix it, or is the failure expected?