/srv/irclogs.ubuntu.com/2014/12/16/#ubuntu-app-devel.txt

balloonsperrito666, you could use vivid, 15.0400:08
perrito666balloons: you mean as a kit?00:25
perrito666http://pastebin.ubuntu.com/9534675/ <-- the error00:26
=== _salem is now known as salem_
=== salem_ is now known as _salem
dholbachgood morning06:55
=== oSoMoN_ is now known as oSoMoN
ybonWhat is the recommended framework to put on the manifest.json nowaday? :) (I'm having "'ubuntu-sdk-14.10-dev2' is obsolete. Please use a newer framework")10:05
beunoybon, here's a non-human friendly version to that answer: https://myapps.developer.ubuntu.com/dev/api/click-framework/10:08
ybonperfect, thanks :)10:08
beunoubuntu-sdk-14.10 is probably the answer you're looking for10:08
beunobut, give a man a fish...10:08
ybon:)10:09
JamesTaitGood morning all; happy Chocolate Covered Anything Day! :-D10:09
=== john-mca` is now known as john-mcaleely
=== _salem is now known as salem_
=== rmescandon is now known as rmescandon|brb
perrito666morning all, Ill re-ask just in case, I am using ubuntu 14.10 and just created a new go+qml project in ubuntu sdk, the basic qml created yells the following error12:07
perrito666http://pastebin.ubuntu.com/9534675/12:07
ferdinandoh12:10
=== rmescandon|brb is now known as rmescandon
=== ybon1 is now known as ybon
TommyBrunnAnyone know why my breakpoints aren't being triggered in my scope? I'm setting the breakpoint in QtCreator and press the "Start Debugging" button, but the breakpoints are never triggered.12:55
dpmzbenjamin, perhaps you can help TommyBrunn with his question about breakpoints? ^13:06
TommyBrunnIt would be most appreciated. I've never written C++ before, and not being able to use the debugger makes it a tad harder. :)13:26
=== rmescandon is now known as rmescandon|lunch
=== chihchun_afk is now known as chihchun
timpdpm: benjamin is on holidays13:58
=== chihchun is now known as chihchun_afk
=== davmor2_ is now known as davmor2
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== rmescandon|lunch is now known as rmescandon
=== chihchun_afk is now known as chihchun
=== boiko_ is now known as boiko
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
balloonsahayzen, are you on trusty?17:39
ahayzenballoons, i'm on utopic :)17:43
balloonsahayzen, did you ever run on trusty with the sdk ppa?17:49
ahayzenballoons, yup i did all the time :)17:50
balloonsahayzen, did you encounter issues with component versions?17:50
ahayzenballoons, i don't think so17:50
ahayzenballoons, the bigger issue i had is that the music-app stopped running on trusty when we moved to a later version of mediascanner :/17:51
ahayzenballoons, but it seemed to handle 1.0 1.1 etc ok if thats what you mean?17:51
balloonsahayzen, right.. It's weird it's not for someone I'm trying to help17:51
balloonsthanks for the sanity check17:52
ahayzenballoons, weird whats the error?17:52
balloonsit doesn't find the 1.1 version of components, the 2.3 version of qtquick, etc. It's all symptoms of the version being too old17:52
ahayzencan you even get 2.3 on trusty?17:53
balloonsI think it's a dist-upgrade issue.. ahayzen that was partly my question :-)17:53
ahayzen2.3 = Qt 5.3 which isn't in trusty right?17:53
balloonsahayzen, that's my understanding17:53
ahayzensame17:54
rpadovaniballoons, an italian user had the same problem yesterday. QtQuick in trusty repository and in sdk ppa for trusty is still at 2.2, and I didn't find any trusty PPA that is trustable enough. You can download Qt5.3 from the website18:02
ahayzen'trustable' hah18:02
balloonsrpadovani, interesting18:02
balloonsbzoltan_, refresh my poor memory again. What's the thoughts of having newer versions of qt on the lts?18:07
balloonssee the above conversation bzoltan_ ^^18:08
bzoltan_balloons: I am not sure of I capture the issue ...18:09
bzoltan_balloons:  we stopped backporting the new Qt releases and the Ubuntu UI components to the LTS18:10
balloonsbzoltan_, if I'm running 14.04 LTS and I want to develop an application I can use the sdk ppa to get the newer frameworks. However, trusty shipped with qt5.1? I think, so if I require say QtQuick 2.3, the app won't run on my desktop18:10
bzoltan_balloons:  that is correct. Sadly the LTS desktops are not targets for app development with the SDK. The reason is very simple.. it i snot possible to co-install the 5.1 Qt with the 5.3 Qt.18:11
bzoltan_balloons:  and we did want 5.3 Qt because it has signifucant improvements and bugfixes18:12
bzoltan_balloons: I mean we do not stop anybody from the community to apt-get source the utopic/vivid Qt packages and backport them to Trusty in a PPA. After that it would be trivial to backport the UI Toolkit source packages to LTS too. So it is not impossible to make a full desktop backport.18:15
balloonsbzoltan_, sure. So what does the sdk ppa really get you on 14.04?18:16
bzoltan_balloons:  but it can be only a community initiative because I can not promise that such backporting would be bulletproof. We do not test the Qt stack on LTS anymore18:16
balloonsthe idea is you get newer components, but must use / test / run them inside an emulator?18:16
balloonsor device I guess18:16
bzoltan_balloons:  QtCreator with our plugins, a click what can create you 14.10 and 15.04  chroots for building projects and emulators18:16
balloonsbzoltan_, thanks, that does all make sense. I just need to update my docs for folks wanting to write tests; it's really utopic or better to do it. 14.04 really won't cut it18:19
balloonsbased on the above18:19
bzoltan_balloons:  Utopic is not much better than Trusty from that aspect. The UITK is newer, yes and Qt is newer.. but once we move on to Qt5.4 the situation will be the same. Actually for writing tests it should be all the same...18:21
bzoltan_balloons:  but true, that even I struggle with writing tests for non relesed UITK components...vivid is new new enough when I need to write tests for a component what exists only in the staging branch :)18:22
balloonsbzoltan_, I recommend people writing tests to be running the devel version, but that's not always possible. At least if you can run the last release you can get by18:22
balloonsahh yes, I've been there18:23
bzoltan_balloons: it would be cool to be able to run AP tests on the emulator18:24
balloonsbzoltan_, it technically works; depending on the test some run better than others. Actually I'm curious now about setting up an lxc container and running apps and tests inside of it18:25
balloonsI think nik90_ did this long ago?18:25
bzoltan_balloons:  I have heard about 4-5 people mentioning the LXC as the finding of the golden pot ... all of them gave up :) It looks like a viable path, but it is not18:26
ahayzen..does audio work in the emulator yet? this was the limitation stopping us trying music's autopilot in the emulator last time18:26
bzoltan_balloons: how do you mean that AP test work on emulator? How the input events made? Can you use touch and keyboard events?18:27
balloonsI feel like generally I want a fast environment that lets me iterate on tests quickly during development, so that's the desktop as I get all my tools as well. For confirmation, I would simply run on a device. For that reason, I'm not sure the emulator makes a ton of sense as a target, as I would not want to run tests against it during test development (too slow)18:27
balloonsbzoltan_, you can run AP tests as-is on the emulator unmodified. The issues I found last time I tried was apps talking too long (timeout issues) and memory issues (emulator kills AP thread)18:28
nik90_balloons: yeah I use lxc to run the tests18:29
nik90_I just created a new vivid lxc18:29
nik90_http://nik90.com/fiddling-around-with-lxc-containers/18:30
bzoltan_balloons:  wow, that is new to me. Good to hear. Last time I tried (several months ago) I could not even install the AP packages18:31
balloonsnik90_, hmm. So you are able to develop and test happily on 14.04 then?18:31
balloonsbzoltan_, nik90_ so we could / should ship an lxc container package that would set this up for you transparently and run the sdk from it yes?18:33
bzoltan_nik90_: balloons: I would not ever suggest that to anybody. You are free to do it, but I do not promise any sort of support for the SDK or for the UITK when it is used in LXC or other virtual environment. The sole reason is that we do not have resources to test the whole SDK in LXC.18:40
bzoltan_nik90_: can you create click chroots or run an emulator in the LXC?18:42
nik90_balloons: yes, I ain't leaving 14.04 :D18:44
nik90_bzoltan_: nope18:44
nik90_bzoltan_: but that's got to do with how I create the chroot..18:45
nik90_bzoltan_: which is why I use 14.04 with emulator , and then use the lxc container only for testing (ap + qml tests)18:45
nik90_since AP and QML Tests require tests to be run natively18:45
bzoltan_nik90_: I hardly ever run any test natively, but i am privileged to have a real device.18:46
bzoltan_nik90_: I think that ubuntu people were too long spoiled with the comfort that the development - build -runtime environment were the same ... well, not really anymore :) But I see developers are still emotionally bonded to the old practices.18:48
nik90_bzoltan_: I try to run the tests natively before every MP since I used to use my real device for daily dogfooding with rtm18:48
bzoltan_nik90_:  so instead of fooling ourself with the fake comfort of running tests on desktop :) i would rather fix the QA process and make a real device able to to test MPs18:49
nik90_bzoltan_: +18:50
nik90_bzoltan_: its just that, running things natively can be done within 1-2 seconds which is so fast...compared to running on emulator or on a device...18:50
nik90_but that said, I have stuck to 14.04 with emulator for development18:50
nik90_so I am doing what you recommend18:50
bzoltan_nik90_: and that is the desk of balloons :) The ultimate solution would be click package all the AP stuff with the app you want to test and do not taint the device18:51
bzoltan_nik90_:  I am happy that you use 14.04 :) because we do not have much dogfooders on LTS18:51
balloonsinteresting interesting18:53
balloonsso you can't create a build target inside your lxc sdk nik90_ ?18:53
balloonsnik90_, and yes the sdk ppa gives you enough to develop with the newer frameworks, even though you are on 14.04 and can't run the app natively that you are developing18:56
bzoltan_balloons: we have functions in the SDK to run AP tests for an app. I would love to extend it to "run the AP tests of the app on the target device". Sadly it is not possible on a stock image... because bunch of packages are not installed19:05
balloonsbzoltan_, you need to use adt. Have you ever used it?19:06
balloonsbasically autopkgtest should setup the entire environment on the device and run the tests. You should be able to easily script into that and return the results to the user19:09
balloonsit's what CI is transitioning to19:09
bzoltan_balloons: adt? Does not ring a bell19:17
balloonsbzoltan_, autopkgtest?19:18
bzoltan_balloons:  that one I know... but how can I use it on a readonly stock device?19:19
balloonsbzoltan_, I talk about it in this post: http://www.theorangenotebook.com/2014/09/autopilot-test-runners.html19:19
bzoltan_balloons: wow...`adt-run --click com.ubuntu.music --- ssh -s adb` is that all???19:21
balloonsbzoltan_, yes.19:21
balloonsbzoltan_, for the sdk, I would imagine you should pass the local folder too so it runs the local tests19:22
bzoltan_balloons:  dude :) you made me two wows in an hour. that is a new record this week19:22
bzoltan_balloons:  thank you a bunch19:22
balloonsbzoltan_, since developer mode landed, support is added for that as well, you just need to pass your password19:23
balloonsbzoltan_, this might also be useful: https://people.debian.org/~mpitt/autopkgtest/README.running-tests.html19:25
balloonstechnically adt-run will also run and setup inside an lxc environment as well.. that might be an easier suggestion per our previous conversation about setting up an lxc container just for tests19:26
nik90_balloons: no I cannot create a chroot inside the lxc19:28
nik90_balloons: I get some permission errors19:28
balloonsmm, that partially makes sense nik90_19:29
nik90_I talked to strgraber and he said that was an issue19:29
nik90_but that's fine....I dont use the lxc for anything else19:30
balloonsahayzen, is this still valid? https://bugs.launchpad.net/music-app/+bug/126158720:16
ubot5Launchpad bug 1261587 in Ubuntu Music App " Autopilot Testcase Needed: When the library has an empty state" [Low,Triaged]20:16
balloonsdoes music need anymore AP tests ahayzen ?20:16
bzoltan_nik90_: balloons: Yeps, that was the showstopper for me last time when I tried to use LXC for testing the SDK20:21
ahayzenballoons, we always need more ap tests :)20:23
ahayzenballoons, yeah that one is still valid...and we've found that there is a bug in trunk todo with empty library :/20:23
ahayzenballoons, so that test would have been useful :P20:23
ahayzenballoons, and i need to rebase those url-dispatcher tests to the remix and try and land them again20:24
balloonsahayzen, I just sent a mail to the list making sure all the needs are filed as bugs, and tagged with needs-autopilot-test20:25
ahayzenballoons, ok i'll have a scan through the bugs this evening :) .. i've just finished my last exam so i'm 'free' again \o/20:25
balloonsahayzen, awesome.. I don't want Letozaf_ to get bored ;-)20:26
ahayzenballoons, hehe20:29
ahayzenballoons, i've been playing about with QmlUnitTests while writing a Bacon2d game... i guess we should be using them more in the music-app?20:29
ahayzenballoons, is there a guide somewhere with more info about *where* to use them? like that acceptance test guide for AP?20:30
kenvandineahayzen, are you writing QmlUnitTests for your bacon2d game?20:33
kenvandine:-D20:33
ahayzenkenvandine, i have a basic one that loads one of my objects and checks it collides with another ;)20:33
kenvandineawesome20:33
ahayzenkenvandine, i also have autopilot tests to check that the menus/pause/resume functions20:33
Letozaf_mzanetti, hi20:33
kenvandineahayzen, that's great, i've started on some qmltests, mostly to detect API breakages20:34
ahayzenkenvandine, i'm nearly ready to release a 'beta' to the store :) just a few minor bugs to resolve20:34
kenvandinebut we need both20:34
kenvandineahayzen, that's awesome20:34
kenvandinecan't wait to see it20:34
ahayzenkenvandine, but i think my bacon2d version is massively out of date, it is the one from the sprint?20:34
ahayzenkenvandine, yeah i just finished exams today so i can get back to work on it :)20:35
kenvandineyeah, we've broken the API since then :)20:35
kenvandinei think...20:35
kenvandinemaybe it was before20:35
ahayzenkenvandine, what did you break? .. just of interest20:35
kenvandineyeah, that landed on nov 320:36
kenvandineit was the box2d stuff20:36
balloonsahayzen, on qmltests, yes. I would point you at the following: http://doc.qt.io/qt-5/qtquick-qtquicktest.html http://doc.qt.io/qt-5/qml-qttest-testcase.html and http://summit.ubuntu.com/uos-1411/meeting/22396/writing-unit-tests-for-qml-applications/20:36
kenvandineupstream qml-box2d refactored their code to make it easier for us to integrate it20:36
ahayzenballoons, thanks :)20:36
kenvandineso in integrating their changes, we had to change our API a bit20:36
ahayzenah right20:36
kenvandinebut this is much better and it'll be easier to maintain20:36
kenvandineone of the things we wanted to do before releasing 1.020:36
ahayzeni also noticed that i can use the sensors (TiltSensor) with no apparmor policy... but looks like jdstrand is away?20:37
kenvandinei have one more planned API break before 1.0, which is pretty small20:37
ahayzenwould be awesome to have a 1.0 :)20:37
kenvandineoh?20:37
ahayzenyeah it says "policy pending due to LP: #1227116"20:37
ubot5Launchpad bug 1227116 in apparmor-easyprof-ubuntu (Ubuntu Trusty) "qtsensors tilt and rotation is non-functional" [Medium,Fix released] https://launchpad.net/bugs/122711620:37
ahayzenon the app-confinement docs next to the 'sensors' policy20:37
ahayzenbut ^^ bug is fixed and the sensors now work...so i suspect that policy *should* be enforced?20:38
kenvandineyeah, should be20:38
ahayzeni'll ping him next time i see him online :)20:38
kenvandineahayzen, https://github.com/rpadovani/100balls/pull/620:39
kenvandineif you want to see the changes i needed to make to 100balls to support the API changes20:39
kenvandineahayzen, the other API break is going to involve added a state property to Game, which is an enum20:39
kenvandineand making running on the scene read-only20:39
kenvandineso you have to pause the game by changing the property on game20:40
kenvandineand it'll handle things like pausing the game when the app suspends, etc20:40
ahayzeni pause it by changing the running property at the moment?20:40
kenvandineright20:40
kenvandinebut to do this right, we need more than a boolean20:40
kenvandineso i'm making it an enum on Game20:41
ahayzenah cool  :)20:41
kenvandinewhich the controls the running property on the currentScene20:41
kenvandineit'll be much better :)20:41
ahayzen:)20:41
kenvandinenot quite ready to land it20:41
kenvandinei need to figure out how to wire it up to the spirte animations20:41
kenvandineso they stop too20:41
ahayzenheh20:42
ahayzenkenvandine, is there a way of telling if something has come to a 'rest' in a certain direction... eg tell when an object hits the ground and stays?20:46
ahayzenkenvandine, i tried just listening to the velocity is zero but that doesn't help as then it counts it as zero when it is at the top of the 'jump'20:47
mzanettiLetozaf_: hi20:47
ahayzenunless i just listen to when it collides20:48
kenvandineahayzen, i think there is an sleeping property20:48
kenvandinebut that might be noisy20:48
ahayzenkenvandine, note it can move left/right as well20:48
kenvandineyou could just listen to collisions20:48
Letozaf_mzanetti, rpadovani told me  some very big branches are landing in reminders, I was wondering If It's better to wait for writing autopilot tests, or may I carry on all the same ?20:48
mzanettiLetozaf_: hmm... good question20:49
Letozaf_mzanetti, :-)20:49
kenvandineahayzen, in pathwind i listen for collisions then change the sprite based on what it collided with20:49
mzanettiLetozaf_: this is the branch: https://code.launchpad.net/~mzanetti/reminders-app/offline-mode/+merge/24471320:49
kenvandineso hits the ground it changes to walking20:49
ahayzenyeah i think collisions maybe best i'll have a play20:50
mzanettiLetozaf_: the ui didn't change much20:50
mzanettiLetozaf_: but it supports offline mode now.20:50
mzanettiLetozaf_: I'd be happy to get some feedback of that20:50
ahayzenbasically my character can 'jump' but you can only jump when your touching the ground...at the moment if you happen to hit jump at the 'top' of the jump then you can double jump :)20:50
kenvandineah20:50
kenvandinecool20:50
Letozaf_mzanetti, ok I will take a look and let you know20:51
ahayzenso i think having something that just knows when it has collided with the ground and then allows you to jump again may be enough20:51
kenvandineahayzen, i think you can also setup a contact and see if you are touching something20:51
kenvandinei've never done that20:51
ahayzenooo that would be cool20:51
ahayzenhow would i do that though lol20:51
kenvandinei've never tried that :)20:51
Letozaf_mzanetti, I see that it needs fixing for CI, shall I try it all the same ?20:52
kenvandineahayzen, Box2DContact has a isTouching function20:53
ahayzenkenvandine, is that in the QML interface? ...i've just been using this as my reference http://bacon2d.com/docs :)20:53
kenvandineahayzen, ok, i think you can just use onBeginContact and onEndContact20:55
kenvandinebetween fixtures20:55
kenvandineso when you begin contact with a specific fixture set a property20:56
kenvandineand onEndContact you toggle it?20:56
kenvandinemaybe20:56
ahayzenkenvandine, ah yeah that should work :)20:56
kenvandinethere is a contacts example in the source20:56
kenvandineuses those signals20:56
kenvandineso onBeginContact check what the other fixture is, and if it's the one you care about set your proerty20:57
kenvandineproperty20:57
ahayzeni already use onBeginContact for my 'ball' :)20:58
kenvandinei usually do that by adding an objectName property to my entity20:58
kenvandinegreat20:58
kenvandineso i can use other.target.objectName20:58
kenvandinealthough target there is part of the new API20:58
kenvandinebut you can do other.parent20:58
kenvandinei think20:58
ahayzenyeah other.parent is what i've used20:59
kenvandinethe latest stuff adds a target property to the body20:59
kenvandinewhich is set to the entity20:59
ahayzensweet :)20:59
ahayzenthanks for the pointers this should stop my double jumping issue hehe :)21:00
mzanettiLetozaf_: pushed a fix21:01
Letozaf_mzanetti, ok thanks21:02
kenvandineahayzen, great!21:02
=== salem_` is now known as _salem
=== chihchun is now known as chihchun_afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!