-
-
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
only fail qmlformat stage if Qt >= 5.15 is used #3929
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is a good idea. It's more convenient for people that merge main into their PR, but may lead to skin change PRs with broken qml formatting without the contributor expecting it. And if we ever accidently have a too old Qt version on CI, we won't notice qml formatting issues.
It just does automatically what is suggested by the error message. The contributor has no chance to fix it on such a system. |
Co-authored-by: Jan Holthuis <holthuis.jan@googlemail.com>
Before:
After:
|
I agree with Jan and would prefer the safe (and future proof) version. |
I think my version is the future proved one, please verify: Before: After: |
Uh ... this is really helpful. Imagine you are on qt 5.12 ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Holzhaus Merge?
@daschuer Maybe we should add a TODO that allows us to better identify and remove obsolete code once we have switched to Qt >= 5.15? All this new code is only there for the purpose of backwards compatibility. The expression (5, 15)
is not easily identifiable as the Qt version when searching for it.
As I said, the proper fix would be to run |
Yes, I really like to merge it, because of the good first time experience and the feature that it is automatically enabled once QT 5.14 is installed. |
I am not excited that we need to add another ugly workaround for Ubuntu. At least its just a build script. LGTM |
this uses "moc -v" for version check, because this is needed for building anyway.