import failure when using a project name with dashes with QML Extension Library + Tabbed Touch UI

Bug #1215918 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator (Ubuntu)
Confirmed
Undecided
Zoltan Balogh
Saucy
Won't Fix
Undecided
Zoltan Balogh

Bug Description

If I follow the instruction in bug #1215913 on how to create and configure a project using QML Extension Library + Tabbed Touch UI, if I choose a project name with a '-', then running the project results in import errors:
Starting /usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene...
file:///home/jamie/src/qml/build-test-compiled-2-Desktop-Debug/app/test-compiled-2.qml:30 Type HelloTab unavailable
file:///home/jamie/src/qml/build-test-compiled-2-Desktop-Debug/app/ui/HelloTab.qml:3 Expected token `;'

/usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene exited with code 255

The only workaround I know is to scrap the project and create a new one without dashes in the project name.

Tags: appstore
tags: added: appstore
Zoltan Balogh (bzoltan)
Changed in qtcreator (Ubuntu Saucy):
status: New → Confirmed
Zoltan Balogh (bzoltan)
Changed in qtcreator (Ubuntu Saucy):
assignee: nobody → Zoltan Balogh (bzoltan)
Revision history for this message
Zsombor Egri (zsombi) wrote :

If you open HelloTab.qml in Qt Creator you will see that it gives the "expected token ';'" error for the first dash. Though this link [1] does not give any other definition on what is a qualified module name other than " is an identifier specified in dotted URI notation, which uniquely identifies the type namespace provided by the module", and neither this one [2] tells that dashes or underscpores would not qualify in a module name.

[1] http://qt-project.org/doc/qt-5.1/qtqml/qtqml-syntax-imports.html
[2] http://qt-project.org/doc/qt-5.1/qtqml/qtqml-modules-identifiedmodules.html

Revision history for this message
Zsombor Egri (zsombi) wrote :

I filed a bug [1] against QML Documentation [2], but the feedback from upstream was that dash does not qualify as valid in module names. However QtC allows the dash to be in a module name...

[1] https://bugreports.qt-project.org/browse/QTBUG-33170
[2] http://qt-project.org/doc/qt-5.1/qtqml/qtqml-modules-qmldir.html

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

I have checked how QtC validates the QML Extension project and module names. The validator regular expression '^[A-Za-z0-9]+([A-Za-z0-9-]*[A-Za-z0-9]+)?(\.[A-Za-z0-9]+([-A-Za-z0-9]*[A-Za-z0-9]+)?)*$' specifically allows the "-" character in the module names.

Revision history for this message
Kurt (ignitiongtown) wrote :

This affects me without the dashes ever being in the project name but I do have this in my file path of the build

Starting /usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene...
QProcessPrivate::execChild() failed to chdir to /home/kurt/SDK Files/build-audiorecorder-Desktop-Default/.ubuntu-sdk-deploy
file:///home/kurt/SDKFiles/audiorecorder/app/audiorecorder.qml:34 Type WorldTab unavailable
file:///home/kurt/SDKFiles/audiorecorder/app/ui/WorldTab.qml:43 AudioRecorder is not a type

/usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene exited with code 255

Revision history for this message
Rolf Leggewie (r0lf) wrote :

saucy has seen the end of its life and is no longer receiving any updates. Marking the saucy task for this ticket as "Won't Fix".

Changed in qtcreator (Ubuntu Saucy):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.