Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
6.10
-
cdd5cc943 (dev), ddcafa0a5 (dev), 395ad1a04 (6.10)
Description
Qmlls requires command-line parameters for working correctly, currently:
- build folder
- import paths
- documentation directory
Technically, if qmlls has the build folder, then the import path and the documentation directory can be found from the build folder instead of the source folder.
Clean up the .qmlls.ini generation to:
- generate .qmlls.ini inside the build folder with information about import paths and documentation directory (and don't set no-cmake-calls or other user settings there)
- generate the .qmlls.ini inconditionally (and keep the .qmlls.ini source folder generation behind the QT_QML_GENERATE_QMLLS_INI variable)
- Use the source-to-build folder mapping in qmlls to load the .qmlls.ini from the build folder, before loading the settings from the sourcefolder (source folder settings overrides the build folder settings)
This should make the qmlls integration into clients easier as qmlls now only requires one argument, the build folder.
Attachments
Issue Links
- is required for
-
QTBUG-134310 qmlls: implement support for VS (non-code)
-
- Reported
-
-
QTBUG-134754 qmlls: can't Ctrl+Click on type from Module imported via qmldir IMPORTS
-
- Reported
-
-
QTBUG-137199 Minimize discrepancies in QML import paths between different QML tools, out-of-the-box
-
- Reported
-
- relates to
-
QTCREATORBUG-32989 Set QT_QML_GENERATE_QMLLS_INI for the project when generateQmllsIniFiles is selected
-
- Reported
-