API versioning broken in some cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtdeclarative-opensource-src (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
qtdeclarative-opensource-src (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
With Oxide 1.2 being the version that's shipping in the RTM image, I want to start correctly versioning new API's so that we can upgrade Oxide OTA safely without breaking existing applications. I'm testing the attached patch for Oxide to add a revision to API's that were added in 1.3, but running the test suite results in the following failure:
Output:
-------
file://
^
********* Start testing of qml-core-test *********
Config: Using QtTest library 5.3.0, Qt 5.3.0
QWARN : qml-core-
/home/
/home/
Working directory: /home/chr1s/
View: QQuickView, import paths:
'/home/
'/home/
'/usr/
Plugin paths:
'.'
FAIL! : qml-core-
Loc: [/home/
After scratching my head for a while, I can't see what I'm doing wrong here.
If I run the following simple QML app, I can access the property correctly:
- test.qml:
import QtQuick 2.0
import com.canonical.Oxide 1.3
WebView {
focus: true
width: 960
height: 540
url: "https:/
context: WebContext {
allowedExtr
}
}
However, if I run this simple app instead, then it fails with the same message I see in the unit tests:
- test.qml:
import QtQuick 2.0
import com.canonical.Oxide 1.3
TestWebView {
focus: true
width: 960
height: 540
url: "https:/
context.
}
- TestWebView.qml
import QtQuick 2.0
import com.canonical.Oxide 1.3
WebView {
context: WebContext {}
}
This last example works fine without a revision number on this API.
I consider this to be a blocker for being able to update Oxide OTA, as we're not able to version new API's with this bug
Upstream bug https:/
description: | updated |
This sounds similar to https:/ /bugreports. qt-project. org/browse/ QTBUG-40043