Skip to content
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

Precommit qmlformat crash fixes #11078

Merged
merged 2 commits into from Nov 19, 2022
Merged

Conversation

JoergAtGithub
Copy link
Member

This fixes two crashes if qmlformat precommit hook runs on Windows.
But it doesn't fix the detection of the qt directory. It always returns with 0, because qt is not found (it seems to expect a executable moc in the search PATH, instead of following the buildenv path).

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you.

@daschuer daschuer merged commit e231c56 into mixxxdj:main Nov 19, 2022
@daschuer
Copy link
Member

moc.exe can be found at
${MIXXX_VCPKG_ROOT}\installed\x64-windows\tools\qt5-base\bin\moc.exe
You may add this to the lookup path.

Be also aware that qmlformat will be soon replaced with the Rust qml_formater, proposed here:
#10929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants