ReferenceError: UbuntuColors is not defined

Bug #1197293 reported by Olivier Tilloy on 2013-07-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Medium
Florian Boucault
ubuntu-ui-toolkit (Ubuntu)
Undecided
Unassigned

Bug Description

I have the latest UITK installed from the ubuntu-sdk-team PPA (version 0.1.46+13.10.20130628bzr575raring0), and when I compile and run the latest trunk of webbrowser-app, I’m getting the following errors printed out on the console:

QQmlComponent: Component is not ready
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Themes/Ambiance/ButtonStyle.qml:29: ReferenceError: UbuntuColors is not defined
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Themes/Ambiance/TextAreaStyle.qml:33: ReferenceError: UbuntuColors is not defined
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/Label.qml:59: ReferenceError: UbuntuColors is not defined

(the last one is repeated a dozen times)

I’m not seeing this error when running the UITK gallery examples though, so I’m wondering if there’s something I’m not doing right in the browser?

Related branches

Olivier Tilloy (osomon) wrote :

The problem seems to have appeared with revision 204 in webbrowser-app trunk (http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/revision/204). Revision 203 doesn’t exhibit the problem, even with the latest UITK.

Changed in ubuntu-ui-toolkit:
status: New → In Progress
assignee: nobody → Florian Boucault (fboucault)
importance: Undecided → High
Olivier Tilloy (osomon) on 2013-07-03
description: updated
Florian Boucault (fboucault) wrote :

15:52 < Kaleo> oSoMoN: ok it _is_ a naming problem
15:52 < Kaleo> oSoMoN: what's happening is that inside the toolkit plugin "Ubuntu.Components" I'm trying to guess what the path on
               disk to the plugin is
15:53 < Kaleo> oSoMoN: Qt 5.1 has a method for that
               http://doc-snapshot.qt-project.org/qt5-stable/qtqml/qqmlextensionplugin.html#baseUrl
15:53 < Kaleo> oSoMoN: but Qt 5.0 does not
15:53 < Kaleo> oSoMoN: so the way I do it is that I convert Ubuntu.Components into Ubuntu/Components
15:53 < Kaleo> oSoMoN: and then go through the importPathList
15:54 < Kaleo> oSoMoN: to look for a directory that ends in Ubuntu/Components
15:54 < Kaleo> oSoMoN: I did not anticipate there could be another Ubuntu/Components

Changed in ubuntu-ui-toolkit:
importance: High → Medium
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision 579, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :
Download full text (4.7 KiB)

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+13.10.20130703.1-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+13.10.20130703.1-0ubuntu1) saucy; urgency=low

  [ Zsombor Egri ]
  * Fix for re-parenting items that are anchor filled to an item in
    default layout.
  * TextField API extended with API left out from TextInput. wrapMode is
    not inlcuded as does not make sense to be used in single line input.
    (LP: #1183265)
  * Calculator example which turns from simple calculator (phone
    portrait mode) into scientific one (phone landscape mode) reflecting
    the use of Ubuntu.Layouts. .
  * Removing common.pri from Layouts.pro and Layouts\plugin.pro causing
    qmake warnings when Ubuntu UI toolkit project is opened in
    QtCreator.

  [ Leo Arias ]
  * Replaced the MainWindow emulator for autopilot tests with a MainView
    emulator that the uses the custom emulator features of autopilot.
  * Added the Toolbar Autopilot emulator. (LP: #1177341)

  [ Juhapekka Piiroinen ]
  * Fixed broken ubuntu-ui-toolkit-gallery.qmlproject file, which had an
    invalid value in mainFile field.

  [ tpeeters ]
  * Update header behavior: - Do not automatically hide the header when
    scrolling in a flickable that is not anchored to the top of the
    page. - Automatically show the header when flickable's contentHeight
    becomes less than flickable.height. - Update documentation for
    Page.flickable. (LP: #1156573, #1160175)

  [ Kaleo ]
  * Removed common.pri and coverage.pri files that were cluttering
    QtCreator making it harder to understand the real structure of the
    project. coverage.pri has been transformed into a feature file
    (coverage.prf) which works the same way as before.
  * Removed antiquated TextCustom class.
  * Removed unused old-style tabs delegate.
  * Removed UbuntuShape.qml and transferred code & documentation to
    shapeitem.cpp ShapeItem: renamed baseColor property into color.
  * UbuntuShape: simplified gradient implementation; gradientColor is
    now the same as color by default. .
  * Simplified theming infrastructure. There are no stylesheets anymore
    (.qmltheme file), only delegates remain. A theme is a QML module
    containing delegates whose names are standardized. The default theme
    is called 'Ambiance' and available from QML through 'import
    Ubuntu.Components.Themes.Ambiance 0.1'. The name of the current
    theme is set in ~/.config/ubuntu-ui-toolkit/theme.ini Writing a new
    theme is done by creating a QML module and adding it in the
    Ubuntu/Components/Themes folder. A theme inherits from another theme
    by containing a text file name 'parent_theme' whose first and only
    line is the name of the parent theme. * Moved themes/ directory to
    Ubuntu/Components/Themes so that themes are importable. * Simplified
    ThemeEngine and ThemeSettings class, removed the rest of the theming
    infrastructure (ItemStyle, Style, QmlThemeLoader, Selector,
    StyleCache). * Adapted all widgets to use the simplified theming
    technique: - new StyledItem class that has a 'style' Component
    property representing the delegate - all widgets that have delegates
    inherit fro...

Read more...

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers