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

qmlls can find a module but not its types

XMLWordPrintable

    • 9b5ef8647 (6.8), e7114956a (16.0)

      The attached project has this structure:

      .
      ├── CMakeLists.txt
      ├── MyApp
      │   ├── CMakeLists.txt
      │   ├── Main.qml
      │   ├── main.cpp
      └── MyLib
          ├── CMakeLists.txt
          └── GreenRect.qml
      

       

      Additionally, it uses:

      • set(QT_QML_GENERATE_QMLLS_INI ON)
      • qt_standard_project_setup(REQUIRES 6.8)
      • qt_add_qml_module(appMyApp IMPORTS TARGET MyLib ...)

      The attached project contains my .qmlls.ini files for inspection.

       

      Steps to reproduce

      1. Ensure that qmlls is enabled
      2. Build and run the attached project, including the "all_qmllint" target
      3. Quit and then re-launch Qt Creator
      4. Load the same project and open Main.qml in the editor

       

      Outcomes

      • (Step #2) qmllint reports no problems (Expected)
      • (Step #2) The project runs fine (Expected)
      • (Step #4) qmlls can find the module from "import MyLib" (Expected)
      • (Step #4) qmlls cannot find the GreenRect type; restarting qmlls does not change anything (Not Expected)

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

            sami.shalayel Sami Shalayel
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes