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

Build against Qt Creator 10.x #40

Closed
mminks opened this issue Mar 24, 2023 · 4 comments
Closed

Build against Qt Creator 10.x #40

mminks opened this issue Mar 24, 2023 · 4 comments

Comments

@mminks
Copy link

mminks commented Mar 24, 2023

Did you try to build this code against Qt Creator 10.x? We are also running into the Lambda formatting bug and this is fixed in Qt Creator 10.x. So the only challenge left is to update qmlfmt.

@mminks
Copy link
Author

mminks commented Mar 24, 2023

While trying to build against v10.0.0-beta1, I recieve

[  8%] Building CXX object qmljs/CMakeFiles/utils.dir/__/qt-creator/src/libs/utils/archive.cpp.o
In file included from /home/vagrant/code/cosy/qmlfmt/qt-creator/src/libs/utils/archive.cpp:7:
/home/vagrant/code/cosy/qmlfmt/qt-creator/src/libs/utils/mimeutils.h:8:10: fatal error: mimemagicrule_p.h: Datei oder Verzeichnis nicht gefunden
    8 | #include <mimemagicrule_p.h>
      |          ^~~~~~~~~~~~~~~~~~~

I guess lots of things changed.

@jesperhh
Copy link
Owner

@mminks Let me see if I can update to Qt Creator 10 when it ships.

I'm not actually writing any QML nowadays, but as I understand it Qt now ships with qmlformat, so I was actually considering sunsetting this project. Is there anything this project does that the official one doesn't?

@mminks
Copy link
Author

mminks commented Mar 26, 2023

Sounds good. We will try to fix it this week, too.

The problem is, that Qt Creator (10) produces a different formatting output than qmlformat does. At least with the beta 1. I will try the RC tomorrow as well and keep you informed.

@jesperhh
Copy link
Owner

#41 builds with Qt Creator 10 RC 1 on WIndows, but I haven't gotten around to test it yet.

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

No branches or pull requests

2 participants