11:03 <popey> #startmeeting Weather app meeting
11:03 <meetingology> Meeting started Fri Nov  7 11:03:42 2014 UTC.  The chair is popey. Information about MeetBot at http://wiki.ubuntu.com/meetingology.
11:03 <meetingology> 
11:03 <meetingology> Available commands: action commands idea info link nick
11:03 <popey> How are you?
11:03 <m-b-o> fine
11:03 <m-b-o> tgif!
11:05 <popey> :D
11:05 <m-b-o> https://bugs.launchpad.net/ubuntu-weather-app/+bug/1383042
11:05 * popey clicks
11:05 <popey> wow, that's odd
11:05 <m-b-o> it happens only on the device. I want to inspect it, but I can't start the app on the device
11:06 <popey> never seen that
11:06 <m-b-o> p, li { white-space: pre-wrap; }  12:04:45: Could not find the manifest.json file in /home/martin/ubuntu/build-ubuntu-weather-app-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-default/.ubuntu-sdk-deploy. Please check if it is added to the install targets in your project file
11:06 <m-b-o> I do, it was definitely not the case when I've reimplmeneted the Sheets as Pages
11:07 <m-b-o> ^ so I can't start the app from QtC. This is not related to the missing CMAKE rules task
11:07 <m-b-o> just a branch of trunk
11:07 <popey> let me try here...
11:10 <popey> gah, doesn't work here, but differently
11:10 <popey> I get a popup "Please attach your device"
11:11 * popey disabled/re-enabled developer mode
11:12 <popey> hello!
11:12 <zbenjamin> hey
11:12 <popey> we're discussing weather app
11:12 <popey> we have two issues... m-b-o has this:-
11:12 <popey> 12:04:45: Could not find the manifest.json file in
11:12 <popey> /home/martin/ubuntu/build-ubuntu-weather-app-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_14_10_utopic-default/.ubuntu-sdk-deploy. Please  check if it is added to the install targets in your project file
11:12 <popey> when he tries to start lp:ubuntu-weather-app from qtc
11:12 <popey> any ideas?
11:13 <zbenjamin> is just he experiencing that problem? or is it always happening with weather app?
11:13 <m-b-o> zbenjamin can't say :)
11:14 <m-b-o> it's an unmodified branch of trunk
11:14 <popey> well, i get a different problem
11:14 <zbenjamin> you guys sure the configure step worked?
11:15 <m-b-o> zbenjamin well, it's complicated
11:15 <m-b-o> there's a new cpp extension added, for calculating timzones offsets
11:15 <m-b-o> but  the extension isn't used by now in the QML
11:15 <dpm> zbenjamin, so we've had this problem with other core apps that started being pure qml and then we added C++ plugins. After we converted them to cmake, they wouldn't launch with qmlscene on the sdk. We solved this by creating a binary launcher. You can see this in file manager, terminal, reminders. On weather, we also added a c++ plugin recently, but we haven't done this migration to a binary launcher - so it's still using qmlscene
11:16 <m-b-o> in another brnach i've used th extension and there are some cmake rules missing
11:16 <zbenjamin> let me try
11:17 <popey> zbenjamin: just fyi, if you do get it to launch on device, you need an API key in key.js which I am pm'ing you now..
11:17 <zbenjamin> great for me it just works ...
11:18 <m-b-o> zbenjamin on the device?
11:18 <zbenjamin> yes
11:18 <popey>11:18 <m-b-o> zbenjamn which kit? UbuntuSDk for armhf?
11:19 <zbenjamin> yeps
11:19 <zbenjamin> but it seems to use qmlscene, didn't you say a binary launcher?
11:20 <m-b-o> dpm ^
11:21 <dpm> zbenjamin, "but we haven't done this migration to a binary launcher" ^
11:21 <zbenjamin> dpm: ah sorry
11:22 <dpm> so weather still uses qmlscene and it's a qml + C++ plugin app
11:22 <zbenjamin> yeps
11:22 <zbenjamin> that works as long as the plugins are installed into the correct directory
11:22 <dpm> whereas terminal, reminders & co. are also qml + C++ plugin, but they have a binary launcher
11:22 <zbenjamin> also supported yes
11:23 <zbenjamin> m-b-o: but it seems for some reason that your manifest file is not created
11:23 <m-b-o> yes
11:23 <zbenjamin> m-b-o: please delete the build directory and the kit from the project. Then add it again
11:24 <zbenjamin> if the manifest file is not created thats usually because of a cmake project files issue
11:24 <m-b-o> zbenjamin no change
11:24 <zbenjamin> or misconfiguration of the build/package steps. For example if someone would remove the package step
11:24 <zbenjamin> m-b-o: can you check if there is a manifest.json in the .ubuntu-sdk-deploy directory in your builddir?
11:25 <m-b-o> weather app doesn't use th eplugin for now, so the errors aren't that visible
11:25 <m-b-o> manifest.json.in is in there
11:25 <zbenjamin> see thats the error
11:25 <zbenjamin> it has to be named manifest.json
11:26 <zbenjamin> you 100% sure you did not change anything on the files?
11:26 <m-b-o> nope
11:26 <zbenjamin> please doublecheck with bzr status
11:26 <m-b-o> cleanbranch
11:27 <zbenjamin> this one: lp:ubuntu-weather-app
11:27 <m-b-o> yes
11:27 <zbenjamin> did you set CLICK_MODE to off?
11:27 <zbenjamin> this is weird ...
11:27 <m-b-o> option(CLICK_MODE "Installs to a contained location" off)
11:27 <m-b-o> ?
11:27 <zbenjamin> it has to be on
11:28 <m-b-o> yes, it was on
11:28 <zbenjamin> can you please pack up the think and put it somewhere for me?
11:28 <zbenjamin> tgz the source directory
11:28 <m-b-o> yepp, one moment
11:29 <popey> while he does that
11:29 <popey> zbenjamin: I'm getting a different issue, where qtc sits there with a dialog saying "Please attach your device"
11:29 <popey> (its attached and I see it in devices)
11:30 <zbenjamin> do you have multiple devices registered to qtc?
11:30 <popey> yes
11:30 <zbenjamin> if yes, did you attach the correct one for the kit you are using?
11:30 <popey> yes
11:30 <popey> i have one armhf kit
11:30 <popey> oh hang on
11:30 <popey> no kit defined for this device
11:31 <zbenjamin> :)
11:31 <popey> ok, i didnt have one, now i do
11:31 <popey> it still does the same
11:31 <zbenjamin> did you add the new kit to the project and then actually use it?
11:33 <popey> how do you mean "actually use it"?
11:33 <popey> when i launched I only specified one kit, the armhf one
11:33 <zbenjamin> every device has its own kit
11:33 <zbenjamin> which means if you have 3 devices, you will have 3 kits and everyone has its own project configuration
11:34 <popey> so in my device I hit autocreate, it now has a kit
11:34 <zbenjamin> go to the projects tab and use the "Add Kit" button to add you new kit to the project, then switch to it by clicking on it
11:35 <popey> huh, now it works
11:35 <popey> confused
11:36 <m-b-o> zbenjamin send you the link
11:37 <zbenjamin> got it
11:37 <zbenjamin> popey: every device has its own project configuration
11:37 <zbenjamin> popey: you can have multiple devices attached and then switch between them
11:37 <zbenjamin> theoretically at least ;)
11:38 <zbenjamin> m-b-o: are you using in source build?
11:39 <m-b-o> waht do you mena?
11:39 <m-b-o> mean
11:39 <zbenjamin> m-b-o: if your builddir is your project dir
11:39 <m-b-o> nope
11:39 <zbenjamin> and you used the cmake project yes?
11:40 <m-b-o> I've changed nothing
11:40 <popey> so it launches on device for me, i just branched lp:ubuntu-weather-app and did "qtcreator CMakeLists.txt" and now it launches.. phew!
11:41 <zbenjamin> even your tgz works for me
11:41 * zbenjamin gets scared ...
11:42 <m-b-o> hmmm, I've updated another partition on my computer to utopic yesterday, should give that one a try perhaps?
11:42 <zbenjamin> m-b-o: the manifest.json.in must come from somewhere
11:42 <m-b-o> in /click there's one
11:43 <zbenjamin> yes but that one is configured with : configure_file(manifest.json.in ${CMAKE_CURRENT_BINARY_DIR}/manifest.json)
11:43 <zbenjamin> so its explicite
11:43 <zbenjamin> explicitely named manifest.json after configure
11:43 <zbenjamin> ok we try one thing
11:43 <zbenjamin> can you do the following:
11:43 <zbenjamin> cd ~
11:44 <zbenjamin> click chroot -a armhf -f ubuntu-sdk-14..10 run
11:44 <zbenjamin> cd ubuntu
11:44 <zbenjamin> mkdir build-test
11:44 <zbenjamin> cd build-test
11:44 <zbenjamin> cmake ../source_dir_name
11:44 <zbenjamin> make
11:44 <m-b-o> oh, th emanifest.json.in in the dir I've copied over and fogrot to delete befopre packaging
11:45 <zbenjamin> make DESTDIR=.ubuntu-sdk-deploy install
11:45 <zbenjamin> then check if there is a manifest.json
11:46 <m-b-o> Scanning dependencies of target com.ubuntu.weather_weather.desktop
11:46 <m-b-o> [  1%] Merging translations into com.ubuntu.weather_weather.desktop
11:46 <m-b-o> /bin/sh: 1: INTLTOOL_MERGE-NOTFOUND: not found
11:46 <m-b-o> CMakeFiles/com.ubuntu.weather_weather.desktop.dir/build.make:49: recipe for target 'CMakeFiles/com.ubuntu.weather_weather.desktop' failed
11:46 <m-b-o> make[2]: *** [CMakeFiles/com.ubuntu.weather_weather.desktop] Error 127
11:46 <m-b-o> CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/com.ubuntu.weather_weather.desktop.dir/all' failed
11:46 <m-b-o> make[1]: *** [CMakeFiles/com.ubuntu.weather_weather.desktop.dir/all] Error 2
11:46 <m-b-o> Makefile:123: recipe for target 'all' failed
11:46 <m-b-o> make: *** [all] Error 2
11:46 <m-b-o> soryy, forgot to pastebin
11:46 <zbenjamin> <m-b-o> /bin/sh: 1: INTLTOOL_MERGE-NOTFOUND: not found   <<<<
11:46 <zbenjamin> so thats the problem
11:47 <zbenjamin> the configure step does not run
11:47 <zbenjamin> exit
11:47 <zbenjamin> click chroot -a armhf -f ubuntu-sdk-14.10 install intltool
11:47 <m-b-o> That's actually the same error message, wehn I'Ve started Qtc with "qtcreator CMakeLists.txt"
11:47 <zbenjamin> you are missing build dependencies
11:48 <zbenjamin> dpm: popey: ^^ always check the compile output ... if there are errors after switching the kit compile also will fail
11:50 <m-b-o> zbenjamin now "cmake ../src-dir" gives me another eero"
11:50 <zbenjamin> show me
11:50 <zbenjamin> you do it inside the chroot again?
11:50 <m-b-o> http://paste.ubuntu.com/8866390/
11:50 <m-b-o> yes
11:50 <zbenjamin> m-b-o: you get the same errors when you hit "run cmake" in the context menu of a project in QtC
11:50 <zbenjamin> m-b-o: thats maybe easier for you
11:51 <zbenjamin> m-b-o: when did you create this chroot?
11:52 <zbenjamin> m-b-o: i think that is a chroot error qtcreator works around. Can you try to hit "run cmake" from qtc?
11:52 <m-b-o> it builds in QTC
11:52 <zbenjamin> goodie :)
11:52 <zbenjamin> and runs?
11:53 <m-b-o> nope, but fails on the device:
11:53 <m-b-o> http://paste.ubuntu.com/8866440/
11:54 <zbenjamin> do you see a shell on the device?
11:54 <popey> is the phone unlocked?
11:54 <popey> (i mean, at the dash)
11:54 <m-b-o> yes, in dev mode
11:54 <zbenjamin> popey: we do automatic unlocking
11:54 <zbenjamin> popey: you don't need to unlock manually anymore
11:55 <popey> neat
11:55 <m-b-o> ah, another instance was still running
11:55 <m-b-o> now ut happens!
11:55 <m-b-o> :)
11:55 <zbenjamin> ah :)
11:55 <popey> \o/
11:56 <m-b-o> thanks!
11:56 <zbenjamin> awesome - o :)
11:56 <m-b-o> zbenjamin where to add the missing dependency? debian/... ?
11:56 <popey> no, i think its only missing inside your chroot
11:56 <zbenjamin> m-b-o: click does not do dependency tracking i'm afraid
11:56 <popey> and click pacakges don't do depen...
11:56 <popey> as he said
11:56 <m-b-o> okay
11:56 <popey> maybe when we build the chroots we should add some of these "must have" things?
11:57 <zbenjamin> popey: if you create a chroot today it will have most of it
11:57 <zbenjamin> popey: problem is old chroots can't get new deps
11:57 <m-b-o> zbenjamin poepy good to know!
11:58 <popey> ahh, neat!
11:58 <popey> thanks for your time zbenjamin !
11:58 <zbenjamin> m-b-o: however you can do apt-get install build-dep -a armhf ubuntu-weather-app in the chroot
11:58 <popey> m-b-o: where were we ? ☻
11:58 <m-b-o> popey: okay, so we are one step further, still at https://bugs.launchpad.net/ubuntu-weather-app/+bug/1383042 :)
11:58 <zbenjamin> not 100% sure of the syntax
11:58 <m-b-o> zbenjamin thanks anyways! :)
11:59 <m-b-o> popey try to add new locations on your device. shoudl also fail with the one from the store
11:59 <m-b-o> perhaps somebody from the sdk team can have a look?
12:00 <popey> ok, lemme try
12:01 <m-b-o> ah, I see a  "qml: undefined" in the logs
12:01 <popey> hmmm
12:01 <popey> zbenjamin: i just ran from qtc, now weather app has disappeared from the dash
12:01 <popey> click list shows it installed
12:01 <zbenjamin> popey: yes because you uninstalled it
12:02 <popey> com.ubuntu.weather      1.1.377
12:02 <popey> installed...
12:02 <davmor2> popey: is  this weather if so I get preston which means it is picking up only on geoclue and not agps/gos
12:02 <zbenjamin> popey: try click list --user=phablet
12:02 <popey> com.ubuntu.weather      1.1.377
12:02 <popey> same
12:02 <popey> ahh, there is one in /opt/click.ubuntu.com/com.ubuntu.weather but there's no "current" folder
12:03 <zbenjamin> thats what happens with preinstalled apps
12:04 <zbenjamin> you can not really uninstall them so the launcher forces the install. Which happens in a overwrite. However you then can uninstall the new version ... which results in the state you are in now
12:04 <zbenjamin> now sure if that is a bug ...
12:04 <popey> hm
12:05 <popey> this is in an inconsistent state now
12:05 <popey> store says its installed
12:05 <m-b-o> popey reboot?
12:05 <popey> lets discuss this after, i think i need a bug reporting
12:05 <popey> yeah, will do
12:06 <popey> yeah, this is broken now
12:07 <popey> \o/ fixed
12:07 <popey> ok...
12:07 <popey> let me try adding a city
12:08 <popey> m-b-o: http://popey.mooo.com/screenshots/device-2014-11-07-120800.png
12:08 <m-b-o> oh, ah 404 on the device! ;)
12:08 <popey> hah
12:08 <popey> still think it's an sdk issue?
12:09 <m-b-o> can't open the screenshot
12:10 <m-b-o> the "qml: undefined" is unrelated...just a forgotten debug output
12:10 <m-b-o> popey: now I'm eager to see the screenshot1
12:10 <m-b-o> :)
12:11 <popey> http://imgur.com/xPD6Sml
12:11 <popey> sorry, didnt realise the image was broken
12:11 <popey> thought you were making a joke
12:11 <m-b-o> that's th error
12:11 <m-b-o> if you stop and start the app again it's okay
12:12 <popey> correct
12:13 <m-b-o> so, when you go abck from the locationmanager, a refresh of the tabs is happending
12:13 <popey> ok
12:14 <m-b-o> I have fought with a race conditions when impmeneting, but not with this error in particaulr
12:14 <popey> zbenjamin: do you know who in the sdk/toolkit might be clued up to look at this?
12:15 <popey> http://imgur.com/xPD6Sml zbenjamin
12:18 <popey> m-b-o: lets add a toolkit task
12:18 <m-b-o> to the exisiting bug?
12:18 <popey> yes
12:19 <m-b-o> would you mind to do this? :)
12:19 <m-b-o> I will add a comment with a desription
12:20 <popey> sure
12:20 <popey> done
12:21 <popey> added ubuntu-ui-toolkit
12:21 <m-b-o> thanks!
12:21 <m-b-o> so there's still the task with make a binray launcher
12:21 <m-b-o> for qtc (and autopilot?)
12:21 <m-b-o> I have no clue
12:23 <popey> hm, okay. I'll see about that
12:23 * popey adds a todo
12:23 <popey> actually I already have one...
12:23 * popey bumps it up the list
12:24 <m-b-o> it's needed to finish the move to ubunu-genames
12:24 <m-b-o> you rememebr ? ;)
12:24 <popey> yeah
12:24 <popey> will get that sorted. thanks.
12:24 <m-b-o> have a look at https://code.launchpad.net/~twstd-dev/ubuntu-geonames/search-wildcard/+merge/234578/comments/575618 too
12:25 <popey> k
12:27 <popey> hmm, not heard from him for a while. Will ping a mail and if not we'll have to find someone else or fix it up ourselves.
12:28 * popey adds to never ending to-do list ☻
12:29 <m-b-o> how to build the service? (have done *some* python the last years...)
12:29 <zbenjamin> popey: the path in the header?
12:29 <m-b-o> added a comment: https://bugs.launchpad.net/ubuntu-weather-app/+bug/1383042/comments/3
12:30 <popey> zbenjamin: yeah
12:30 <zbenjamin> popey: for header issues i would ask timp
12:30 <popey> ok, thanks zbenjamin
12:31 <popey> m-b-o: the geonames code has a readme with how to set it up
12:31 <popey> m-b-o: it's not too painful, I had it running on a vps, which didn't take much, _but_ the sphinx caching server eats ram
12:31 <popey> i had to add like 10GB swap to get it to actually start the service
12:32 <m-b-o> where to get those 10gb? :)
12:34 <m-b-o> so you are using this vps for other things too?
12:34 <popey> nope
12:34 <popey> i can spin it up and give you an account
12:34 <popey> if that helps?
12:34 <m-b-o> it helps
12:34 <popey> ok, will do
12:34 <popey> will drop you a mail with the details. it's down right now.
12:35 <m-b-o> bit you will ask twstdev before?
12:35 <m-b-o> but
12:35 <popey> yes, will do
12:35 <popey> then if he's not around (I know he was changing jobs recently) then we'll figure it out
12:35 <popey> the code isn't actually that complex
12:35 <popey> i just need 3 coffees before I look at it ㋛
12:37 <popey> m-b-o: one other thing. I still have no feedback from design on what we do moving forward about TWC
12:38 <m-b-o> not expected it :)
12:38 <popey> I'll let you know once I have anything
12:38 <popey> hehe
12:40 <m-b-o> but the presentation is nice. Can we dash Tabs then?
12:40 <popey> Sorry?
12:41 <m-b-o> or is the general design described in the presentation subject to change?
12:41 <popey> oh, it's not final.
12:41 <m-b-o> I mean, if we can perhaps realise the redesign without Tabs, but just with Page components....
12:41 <m-b-o> anyways..  we will see
12:42 <popey> I have just found out that we have a contractor starting on tuesday to finish the weather design
12:43 <popey> will probably take a week or two to finish
12:43 <popey> so yeah, best for us not to start until that's done.
12:43 <popey> (I literally found this out 10s ago) ☻
12:43 <m-b-o> good one! :)
12:43 <m-b-o> thanks
12:44 <m-b-o> until the design is ready we still have geonames :)
12:44 <popey> indeed
12:44 <popey> thats top of my list
12:44 <m-b-o> one question: whats the trick with "qtcreator CmakeList.txt" ?
12:45 <popey> the trick?
12:45 <popey> thats just how i launch it
12:46 <m-b-o> ah, not opening the project with the .project file, but with CMakeLists.txt
12:46 <popey> yes
12:46 <m-b-o> totally new to me
12:47 <m-b-o> okay, time to wrap up? will be in app-devel the whole afternoon
12:47 <popey> Yup!
12:47 <popey> Thanks m-b-o!
12:48 <m-b-o> thanks popey!
12:48 <popey> #endmeeting