Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134307

qmlls: make only -B required and use .qmlls.ini from build folder instead

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • 6.10
    • 6.10
    • QML: Tooling
    • None

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtqmlteam Qt Qml Team User
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes