← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1418507] [NEW] PopupUtils.open doesn't print errors when failing to load component

 

Public bug reported:

Whenever popupUtils is used in a way such as for example

PopupUtils.open(Qt.resolvedUrl("TextInputPopover.qml"), anchor, {
"target": handler.main })

and for instance TextInputPopover.qml may fail to parse or have runtime
errors in QML the only output one will see is

QQmlComponent: Component is not ready
qml: PopupUtils.open(): Failed to create the popup object.

The actual errors need to be printed explicitly.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: High
     Assignee: Christian Dywan (kalikiana)
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1418507

Title:
  PopupUtils.open doesn't print errors when failing to load component

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Whenever popupUtils is used in a way such as for example

  PopupUtils.open(Qt.resolvedUrl("TextInputPopover.qml"), anchor, {
  "target": handler.main })

  and for instance TextInputPopover.qml may fail to parse or have
  runtime errors in QML the only output one will see is

  QQmlComponent: Component is not ready
  qml: PopupUtils.open(): Failed to create the popup object.

  The actual errors need to be printed explicitly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1418507/+subscriptions


Follow ups

References