miurahr / aqtinstall

aqt: Another (unofficial) Qt CLI Installer on multi-platforms
https://aqtinstall.readthedocs.io/en/latest/
MIT License
914 stars 84 forks source link

unrecognized versions, modules #695

Open tsteven4 opened 1 year ago

tsteven4 commented 1 year ago

Describe the bug please recognize that 6.5.2 exists, and that it has module qtactiveqt.

To Reproduce Steps to reproduce the behavior:

aqt install-qt windows desktop 6.5.2 win64_msvc2019_64 -O C:Qt -m qt3d qt5compat qtactiveqt qtconnectivity qtgrpc qthttpserver qtimageformats qtlanguageserver qtlocation qtmultimedia qtpdf qtpositioning qtquickeffectmaker qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtspeech qtwebchannel qtwebengine qtwebsockets qtwebview

Expected behavior no warnings shown below

aqt output

INFO    : aqtinstall(aqt) v3.1.6 on Python 3.9.13 [CPython MSC v.1929 64 bit (AMD64)]
WARNING : Specified Qt version "6.5.2" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
WARNING : Specified modules ['qtactiveqt'] did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

pzhlkj6612 commented 1 year ago

Hello.

Here I'm going to explain about the warning about Qt versions:

WARNING : Specified Qt version "6.5.2" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.

This warning means that when aqtinstall v3.1.6 was released, Qt 6.5.2 has not been released yet, so aqtinstall doesn't know it. This is not an error.

ddalcino commented 1 year ago

@tsteven4, is your qt installation broken in any way? Are you unable to build a qt project that uses qtactiveqt? If so, there may be something to fix here. Otherwise, I'm not sure we can do anything.

The warning messages you mention are meant as a coarse-grain screen to catch obvious mistakes in the user's aqt command. Aqt checks the arguments against known arguments in an auto-generated combinations.json file. It's a low-overhead compromise that gives reasonably good feedback, without running aqt list-qt before every command to validate the argument (which would be very slow). If you are really worried that you gave aqtinstall an argument that it can't handle, you can always check it with aqt list-qt, like so:

$ aqt list-qt windows desktop --modules 6.5.2 win64_msvc2019_64
debug_info qt3d qt5compat qtactiveqt qtcharts qtconnectivity ...

Warning messages: