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

fix: Make plugin registration be compatible with Qt Creator 16 #80

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Mar 2, 2025

This introduces changes needed after the following commit in Qt Creator:

qt-creator/qt-creator@ba5e4b7 Core: Provide settings categories centrally

@Palm1r
Copy link
Owner

Palm1r commented Mar 2, 2025

But QtCreator16 hasn't been released yet?

@p12tic
Copy link
Contributor Author

p12tic commented Mar 2, 2025

But QtCreator16 hasn't been released yet?

Yes, I'm building from source. However, there has been rc1 already.

@p12tic
Copy link
Contributor Author

p12tic commented Mar 2, 2025

I don't expect that this PR should be merged now, but it will hopefully save some time once the project needs to support Qt Creator 16.

It's also a pity that it's not possible to support multiple Qt Creator versions as Qt Creator version is not exposed anywhere in C++ defines.

@Palm1r
Copy link
Owner

Palm1r commented Mar 2, 2025

Yeah, thank you, just unexpected :) Early I have checked changes in QtC16 and as far as I understand the idea of ​​Qt, the registration setting should be moved to the initialize() function inside the ExtensionSystem::IPlugin inheritor. In our case qodeassist.cpp:initialize(). Could you change that?

@Palm1r
Copy link
Owner

Palm1r commented Mar 2, 2025

@p12tic
Copy link
Contributor Author

p12tic commented Mar 2, 2025

Sorry, what an embarrasment :( Yes, will implement this correctly.

@p12tic p12tic force-pushed the qtcreator-16-registration branch from 4ca52a9 to 02aec53 Compare March 2, 2025 21:22
@p12tic
Copy link
Contributor Author

p12tic commented Mar 2, 2025

Fixed. Note that PR is rebased on top of #81 because it includes settings constants more widely.

@p12tic p12tic force-pushed the qtcreator-16-registration branch from 02aec53 to 4cfad04 Compare March 2, 2025 21:30
@p12tic
Copy link
Contributor Author

p12tic commented Mar 2, 2025

Rebased after #81 has been merged.

@p12tic
Copy link
Contributor Author

p12tic commented Mar 3, 2025

Rebased on top of #87, so that this PR can be build with older Qt Creator.

@p12tic p12tic marked this pull request as draft March 3, 2025 17:53
@p12tic
Copy link
Contributor Author

p12tic commented Mar 3, 2025

Marked as draft until #87 is merged.

@p12tic p12tic force-pushed the qtcreator-16-registration branch 2 times, most recently from 1c4679d to 707e731 Compare March 3, 2025 18:01
This introduces changes needed after the following commit in Qt Creator:

qt-creator/qt-creator@ba5e4b7

Core: Provide settings categories centrally
@p12tic p12tic force-pushed the qtcreator-16-registration branch from 707e731 to cad224e Compare March 4, 2025 10:21
@p12tic p12tic marked this pull request as ready for review March 4, 2025 10:22
@p12tic
Copy link
Contributor Author

p12tic commented Mar 4, 2025

@Palm1r this one can also be merged now.

@Palm1r Palm1r merged commit ca0fb5e into Palm1r:main Mar 4, 2025
5 checks passed
@p12tic p12tic deleted the qtcreator-16-registration branch March 4, 2025 22:03
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

Successfully merging this pull request may close these issues.

2 participants