qmlplugindump can not correctly handle singleton types

Bug #1541346 reported by Benjamin Zeller on 2016-02-03
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Medium
Zoltan Balogh
qtdeclarative-opensource-src (Ubuntu)
Undecided
Timo Jyrinki
qtdeclarative-opensource-src (Ubuntu RTM)
Undecided
Timo Jyrinki

Bug Description

When exporting singleton types in qmldir files, qmplugindump creates invalid output and breaks autocompletion in QtCreator for those qml modules.
The exports and exportMetaObjectRevisions have invalid values.

For example:

    Component {
        prototype: "QObject"
        name: "Palette"
        exports: ["Palette -1.-1"]
        exportMetaObjectRevisions: [-1]
        isComposite: true
        Property { name: "normal"; type: "PaletteValues_QMLTYPE_2"; isPointer: true }
        Property { name: "selected"; type: "PaletteValues_QMLTYPE_2"; isPointer: true }
    }

Upstream Bug: https://bugreports.qt.io/browse/QTBUG-49284

description: updated
Changed in qtdeclarative-opensource-src (Ubuntu RTM):
assignee: nobody → Timo Jyrinki (timo-jyrinki)
Changed in qtdeclarative-opensource-src (Ubuntu):
assignee: nobody → Timo Jyrinki (timo-jyrinki)
status: New → In Progress
Changed in qtdeclarative-opensource-src (Ubuntu RTM):
status: New → In Progress
Changed in canonical-devices-system-image:
assignee: nobody → Zoltan Balogh (bzoltan)
milestone: none → ww08-2016
Changed in canonical-devices-system-image:
status: New → In Progress
importance: Undecided → Medium
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtdeclarative-opensource-src - 5.5.1-2ubuntu5

---------------
qtdeclarative-opensource-src (5.5.1-2ubuntu5) xenial; urgency=medium

  * Update symbols from build logs.
  * QQuickItemView-forceLayout-Also-call-layout-when-d-f.patch:
    - Backport patch from Qt 5.7 to call forceLayout more often (LP: #1556842)
  * debian/patches/qml-preserve-composite-singleton-types.patch:
    - Fix broken qml type description files: (LP: #1541346)

 -- Timo Jyrinki <email address hidden> Mon, 01 Feb 2016 14:39:12 +0000

Changed in qtdeclarative-opensource-src (Ubuntu):
status: In Progress → Fix Released
Timo Jyrinki (timo-jyrinki) wrote :

qtdeclarative-opensource-src (5.4.1-1ubuntu11~overlay4) vivid; urgency=medium

  * debian/patches/Repeater-Don-t-rely-on-the-createFrom-variable.patch:
    - Fix asynchronous tab loading (LP: #1540423)
  * debian/patches/qml-preserve-composite-singleton-types.patch:
    - Fix broken qml type description files: (LP: #1541346)
  * debian/patches/QQuickItemView-forceLayout-Also-call-layout-when-d-f.patch:
    - Backport patch from Qt 5.7 to call forceLayout more often (LP: #1556842)

 -- Timo Jyrinki <email address hidden> Mon, 01 Feb 2016 14:25:25 +0000

Changed in qtdeclarative-opensource-src (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed

I have the same problem.
Here are my QMLTypes files concerned:

Ubuntu/Components/plugins.qmltypes: http://paste.ubuntu.com/16233059/
Ubuntu/PerformanceMetrics/plugins.qmltypes: http://paste.ubuntu.com/16233081/
Ubuntu/Content/plugins.qmltypes: http://paste.ubuntu.com/16233107/
QtBluetooth/plugins.qmltypes: http://paste.ubuntu.com/16233131/
GSettings/plugins.qmltypes: http://paste.ubuntu.com/16233198/

Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers