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

qmlls: automatic qmltypes generation

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • 6.9
    • 6.7
    • QML: Tooling
    • None
    • 50516589e (dev), b6cf7841c (dev), 2ebd27dba (dev), 74ea9abb0 (dev), 542605308 (dev)

    Description

      Currently, the user needs to build its QML modules for qmlls to provide any helpful insights. This is bad because a new qmlls user that uses it for the first time will have a very bad first impression of qmlls, as it will not be able to do anything.

      Also, currently, if the user changes its QML component defined in C++, the qmlls will not know about any added/removed/changed property or new classes.

      Therefore, it was proposed that qmlls should be able to trigger the rebuild of the "autogen" (that generates the qmltypes, qmldir and qrc files) so that the user always get up-to-date linting warnings and completions items.

      The "easy" way of doing it would be to:

      • create a cmake target that can regenerate the qmltypes, qmldir and qrc files (that is faster than rebuilding the entire project of the user)
      • Trigger this cmake target from qmlls automatically/without the user needing to do it:
        • when no qmldir nor qmltypes was found (e.g. when opening a newly created QML project that was never built yet)
        • when a C++ file defining QML components was changed (e.g. a property was added/changed/removed)

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-118705
          # Subject Branch Project Status CR V

          Activity

            People

              sami.shalayel Sami Shalayel
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews