/srv/irclogs.ubuntu.com/2016/02/29/#ubuntu-app-devel.txt

chesedoi am trying to test a scope in an emulator to take a screenshot, but building gives the error `unity-js-scopes-tool: Command not found`06:25
chesedothe desktop build is successful06:26
chesedothe kit with the above error is i386 15.0406:27
liuxgdoes anyone know how to make a full screen app on ubuntu phone?07:02
davidcallechesedo: the emulator doesn't have unity-js-scopes-tool. You need to install the click in it (via the Publish tab of the SDK). Alternatively, I don't mind taking a screenshot for you on my phone if you provide the click.08:28
chesedodavidcalle: thanks just figured that... am not trying to get the click running in the emulator08:29
chesedodavidcalle: will send you the click if i get stuck to much08:29
davidcallechesedo: ok :)08:30
chesedodavidcalle: ty for the reply08:31
chesedodavidcalle: the error I currently have is "Timeout waiting for response from server" with emulator from the devel channel08:32
chesedothe emulator from the bq-stable channel had an error about custom something not supported at the moment08:33
davidcallechesedo: right, this last one is because the sdk doesn't support running non-installed JS scopes directly to a phone/emulator, you need to install the click there first.08:35
davidcalle(chesedo, it will be supported in the future, still wip)08:35
chesedook, so how to install the click?08:35
* chesedo thinks he might have read something about this and phablet-tools08:36
davidcallechesedo: "Publish" tab on the left pane of the SDK. "Build and validate" -> Wait until validation passes -> "Install on device" -> Wait for install08:37
chesedodavidcalle: lol, missed the install button after building it. ty08:39
liuxgdoes anyone know how to get the QtQuick version on the Ubuntu phone?08:53
chesedodavidcalle: new error with install on device - Framework "ubuntu-sdk-15.04.4" not present on system09:04
chesedothat for both emulators09:05
davidcallechesedo: alright, in the manifest.json file at the root of your project, change the framework to 15.04.3 (you must be using an more recent version of SDK packages than what's expected, which is fine! But phones don't know about it yet :) )09:06
chesedodavidcalle: ok, *.3 not present either, so am now trying earlier ones09:10
chesedodavidcalle: got that working. the emulator is now just not using the network from the host (which i understand should happen)... so it has no network connection09:34
davidcallechesedo: you can try to fix this in the Devices tab, you can check for developer mode and network connection09:36
chesedodavidcalle: there it show network connection is off (and it is not clickable)09:37
chesedodeveloper mode is on09:37
davidcallebzoltan_: zbenjamin : maybe you can help chesedo? ^09:38
davidcalle(SDK devs)09:38
bzoltan_chesedo:  is the wifi enabled on the device?09:38
chesedobzoltan_: there is no toggle to enable it09:39
chesedobzoltan_: it is an emulator (i386 from bq-stable channel)09:40
bzoltan_chesedo:  Ohh, emulator. That should use the network by default09:44
chesedobzoltan_: that's how i understand it too, but does not seem to atm (browser has network error, store and scopes blank)09:48
bzoltan_chesedo:  you could adb shell into the emulator and look around.09:55
chesedobzoltan_: ok, i guess the eth0 interface is the one that should have the connection09:58
=== JMulholland_ is now known as JMulholland
chesedodavidcalle: can i pm you about making a screenshot for me10:43
davidcallechesedo: sure!10:44
=== _salem is now known as salem_
labsinCould someone give the Deezer Scope another shot? Is it working? (Giving results with and without a search) Someone with a deezer account would be even better. Would be very much appreciated.13:34
davidcallelabsin: I can give it a shot in a short moment14:01
labsindavidcalle: ok14:02
popeyballoons: https://core-apps-jenkins.ubuntu.com/job/docviewer-app-autolanding/ - can we get the no caching option added to the build for docviewer? I had a look but couldn't see how to make it unique for that app...14:32
=== Saviq_ is now known as Saviq
davidcallelasbin, so, I've added my account, but I don't see it in System Settings -> Accounts15:14
davidcallelabsin: without a search, I see the login button, then an Artists category (top artists apparently, not from my account)15:17
davidcalleI can search without issues and get song previews15:18
labsindavidcalle: thank you. That's all I needed to know. I'll try at my work to get an emulator running to debug it. Hoped it would have worked without.15:34
=== javiercrowsoft1 is now known as javiercrowsoft
=== jdstrand_ is now known as jdstrand
* popey pokes balloons 16:59
popeyballoons: any chance we can get docviewer cmake parameter done?17:00
ogra_*bang*17:00
popeyhah17:00
balloonspopey, ohh, right.. You want uniquenss17:00
balloonsthat's not something we do, heh17:00
popeyugh17:00
popeycan we pass additional parameters to the script that does the build?17:00
balloonsWe can do a one-off for it if we have to, but I'm guessing we can just have a think about how to do it generically17:01
popeylike a CMAKE_OPTION?17:01
balloonsright17:01
balloonsthat's my first thought17:01
balloonswe need to do the same for unit tests for each app17:01
balloonsso popey, just tell me how it needs to be built and we'll just change that job to do it, while we figure it out17:04
popeyballoons: add "-DNO_CACHE=on" to the cmake line.17:04
popeythat's it17:04
balloonsI guess I can let you do it, heh. Just copy the script into the shell box, rather than calling it17:05
balloonsack17:05
balloonsi'll have a look17:05
popeythanks.17:05
=== ljp is now known as lpotter
=== javiercrowsoft1 is now known as javiercrowsoft
=== javiercrowsoft1 is now known as javiercrowsoft
aquariuschrisccoulson, ping about Oxide. Specifically, my Readability app is broken with the latest OTA, and debugging it suggests that onLoadingChanged never fires with "false" when loading is complete, and onLoadingProgressChanged never fires at all. (I have not changed the code, so it's still using Oxide 1.0, which should not have been affected by an OTA release.)21:31
aquariusdaker, you might know about this stuff. (I'd examine it in the devtools, but the devtools aren't working, afaict, despite me using http://www.kryogenix.org/days/2014/12/30/enabling-the-devtools-inspector-when-using-oxide-in-an-ubuntu-sdk-qml-app/ to turn them on.)21:32
aquarius(also xchat-gnome just crashed, to improve my mood further, but that's not the appdevs team's fault)21:33
popeyaquarius: irssi ftw, #justsayin21:36
* balloons hands aquarius smiling cookie21:36
aquariusI can't find any actual docs for the Oxide QML object itself, either; am I looking in the wrong place?21:37
aquarius(onLoadProgressChanged. Which I am now using, and which does work. Had to port the "is it loaded yet" stuff to that. So, this seems like a breaking change to me, which version numbering the components is specifically designed to prevent. Annoyed.)22:09
chrisccoulsonhi aquarius22:12
aquariushey chrisccoulson22:12
aquariusMy Readability app broke; Oxide 1.0 used to fire the loading signal with true when one started loading a URL, and then fire it again with false when the URL finished loading. Now, it seems, it doesn't.22:13
chrisccoulsononLoadingStateChanged is what you want if you're monitoring WebView.loading. The old signal (onLoadingChanged) has always been broken - it's generated from the wrong place, and wasn't possible to fix as it was also used for delivering LoadEvents22:13
aquariusI have a little complaint and a big one. The little one is: that seems like annoying behaviour. But, y'know, fine, i can live with it; I'm all for making better API, as you obviously have done.22:14
chrisccoulsonIt's been deprecated for a while. The breakage is caused by a subtle ordering change in Chromium, which is why it was deprecated in the first place22:14
aquariusThe big one is this: I am not using any newer Oxide. I had not changed the app at all.22:14
aquariusSo, it should not have broken.22:14
aquariusI'm cool with API changing... but that means changing the version number too. Otherwise, what are version numbers even for?22:15
chrisccoulsonUnfortunately, the API was always broken - the signal was generated from a completely different part of the navigation stack to WebView.loading. There were already cases when it was broken (particularly when cancelling loads)22:16
aquariusthat ain't a reason in my opinion to break it worse ;)22:17
aquariusI get why it happened; I mean, I've been on the inside of this process too :)22:17
chrisccoulsonThere wasn't really a way for it not break like this, other than us not taking a newer Chromium22:18
aquariusbut... that's a breaking change to a really obvious property. Anyone embedding Oxide at all basically would have needed it :(22:18
chrisccoulsonIt caught a few things out, despite the fact there's been a working API to replace it for over 18 months22:19
aquariusheh22:19
aquariusQuestion: where's the Oxide documentation? I couldn't (and still can't) find it, but that's likely because I'm rubbish at looking. But it's not listed in https://developer.ubuntu.com/api/qml/development/ afaict?22:20
aquariusThere's an Ubuntu.Web object, but (a) I'm not using that, I'm just using com.canonical.Oxide, and (b) that object explicitly documents the loading property and doesn't mention that it's deprecated at all :(22:21
aquariusI'm trying to work out how I should have known this was going to happen so I could avoid it, because "re-test every app I've ever released, every six weeks" is not high on my priority list of stuff I wanna do :)22:22
aquariusand "permanently hang out on IRC and track platform development" is even lower on the list :-)22:22
chrisccoulsonaquarius, documentation is still a bit lacking due to manpower issues22:26
aquarius:-(22:26
chrisccoulsonThat's a bit of an understatement really22:26
aquariusyeah. I understand the situation.22:26
aquariusHowever, this does not make it any easier to live with :)22:26
chrisccoulsonWebView.loading isn't deprecated btw - it works ok, as long as you're using WebView.onLoadingStateChanged to listen for changes22:26
aquariusI still think the policy ought to be: nobody is allowed to release anything unless it has docs. The same as how you can't release stuff without tests, after Rick's Big Drive To Quality22:27
chrisccoulsonI'd love a policy like that. Unfortunately, people keep asking for features and coming to me with bugs that always seem to be higher priority :/22:27
aquariusis OK; I am now using loadProgress anyway :)22:28
aquariusI could go to onLoadingStateChanged instead, but I've done a release now ;022:28
chrisccoulsonaquarius, what are you using it for anyway?22:28
chrisccoulson(loadProgress / loading)22:29
aquariusReadability loads a URL in an invisible webview, then injects the Readability bookmarklet JS into it; that then does (something) and ends up opening the page content at Readability.com22:29
aquariusand so at that point, once the page is showing, all nice and readable, I then make the webview visible.22:30
aquariusSo I need to track "has the page loaded fully" so I can inject the JS, and then track "has the new page loaded fully" so I can know when to show the webview.22:30
aquariusSo the underlying issue here, really, is: Oxide made a breaking change (for understandable reasons) and didn't bump the version number... and I assume that that's because version numbers don't really apply to Oxide because you always get "the latest version" because you can't or won't parallel-install multiple versions, for size reasons?22:32
aquariusso, all understandable, and I'm not sure I can see a *better* way out of this than what you did, but that doesn't make it any less frustrating :(22:32
aquarius(really, the solution here is: give you more resources to write documentation.)22:35
chrisccoulsonYeah :)22:36
aquariuswish I could make it happen for you, pal :)22:36
chrisccoulsonAlthough, we still need to work out a way to notify app developers of changes that could potentially break apps22:37
chrisccoulsonAnd there's plenty of those outside of the QML API (eg, web platform features being removed from blink)22:37
aquariusthere is a better option, which is: don't break their apps. :)22:37
aquariusbut I get that that may not be on the table for something like Oxide.22:37
aquariusbut "sometimes we have to break the API" does not mesh at all well with "we do a release every month and a half", I gotta say22:39
aquariusI'm OK with the iOS approach of "yeah, you get to retest web stuff when we roll a new iOS to confirm it all still works", because they only release yearly (and have a long testing beta period beforehand)22:40
aquariusor the Ubuntu approach of "wow new stuff on your phone every five minutes, and we roll out bugfixes really fast"22:41
aquariusbut they don't go well in combination :(22:41
aquariusperhaps a trivial doc patch to mention in the description of the loading property that one should use onLoadingStateChanged to watch for changes? that might help a little at least?22:43
aquariusI'd do it myself but I have no idea where docs live.22:43
aquariusso it'll take me hours to make the change :)22:43
chrisccoulsonaquarius, we're not the only ones with this issue btw - the comments on https://codereview.chromium.org/1485973002/ are interesting22:48
chrisccoulsonparticularly https://codereview.chromium.org/1485973002/#msg6222:48
aquariusHeh. I'd disagree with that comment. I am fine adapting to changes in the APIs of HTML/CSS/JS etc inside a webview, but changes to the *embedding* API don't seem to me to be a thing which ought to rev as fast, at least partially because there are a bunch of things in place to help devs deal with this in JS -- first there were vendor prefixes, now there are flags to enable new stuff. But nobody ever breaks how22:51
aquarius, say, Array.filter() works and then says "well it's the web, you ought to be used to it by now".22:51

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