/srv/irclogs.ubuntu.com/2014/01/15/#ubuntu-unity.txt

=== duflu_ is now known as duflu
greybackricmm_: https://docs.google.com/a/canonical.com/document/d/1HwxEhrZ45WDngypEmGLW1lHXqf6nLKqdnYORwTALo8E/edit06:51
tsdgeosSaviq: why the preference for null over undefined?08:40
Saviqtsdgeos, return null vs. failure08:41
Saviqtsdgeos, don't remember now why, but that reduced some warnings for me, let me check08:41
Saviqtsdgeos, but anyway, null has more "value" than undefined08:42
Saviqtsdgeos, ah I know now08:42
Saviqproperty Item header: findChild(card, "cardHeader")08:42
Saviqwas warning when undefined08:42
tsdgeosok08:43
tsdgeoschange looks ok to me, was just wondering the reason :)08:43
Saviqtsdgeos, generally, undefined is... undefined08:43
Saviqtsdgeos, while null has a value... of null...08:43
Saviqso the function returns nothing now, as opposed to not knowing what it returns (of sorts)08:44
tsdgeosSaviq: and the otto thing fixed itslef :D08:51
Saviqtsdgeos, indeed it did08:51
Saviqtsdgeos, fginther was baffled08:52
Saviqtsdgeos, he couldn't find any reason why it started, or any reason why it stopped again...08:52
Saviqtsdgeos, we stopped crashing during smoke tests, too, though08:52
tsdgeos:D08:52
tsdgeosah wait08:52
tsdgeosi wonder if it's the /proc thing08:53
tsdgeosor not, the /proc thing was only for Qt5.208:53
tsdgeosand we're not using 5.2 in there08:53
tsdgeosdednick: so you think we should merge https://code.launchpad.net/~nick-dedekind/unity8/lp1264678-indicator.misalignment/+merge/200866 even with the sdk bug you found?09:42
tsdgeosdednick: also seen my comment at https://code.launchpad.net/~nick-dedekind/unity8/indicator.ubuntu-settings-components/+merge/199311 ?09:42
dednicktsdgeos: um, i think the bug is in trunk as well isnt it?09:42
dednickor i thought it would have nbeen...09:43
tsdgeosthe on for the messaging?09:43
tsdgeosit's different but yes it's there09:43
tsdgeosok09:43
dednicktsdgeos: i think we should merge. IMO...09:44
tsdgeosso you think we ought to merge it09:44
tsdgeosok, i'll have a new look09:44
dednicktsdgeos: ta09:44
tsdgeosdednick: do we want to merge https://code.launchpad.net/~nick-dedekind/unity8/indicator.ubuntu-settings-components/+merge/199311 before that thing you say is fixed?09:58
dednicktsdgeos: um, i should probably make sure all is still well and nothing has regressed.10:01
dednicki'll put it back down to WIP10:01
tsdgeosoki10:01
=== tsdgeos_ is now known as tsdgeos
tsdgeosdednick: https://code.launchpad.net/~nick-dedekind/unity8/lp1264678-indicator.misalignment/+merge/200866 needs remerging10:39
dednicktsdgeos: ok10:39
dednickthanks10:39
tsdgeosarg11:10
tsdgeoshow do i tell cmake to use my custom installed qt11:11
tsdgeoscan't seem to convince it to use PKG_CONFIG_PATH nor PATH (in case it's looking for qmake)11:11
tsdgeosah wait, PATH worked now11:11
tsdgeosMirv: ./tst_components -input tst_datepicker.qml11:16
tsdgeosis working for me11:16
tsdgeosMirv: does it crash for you if run standalone?11:17
dednicktsdgeos: fixed merge11:27
tsdgeosoki11:27
Mirvtsdgeos: no, on my computer I did not get the problems the PPA builders are (reliably) getting, instead TextAreaAPI failed for me http://pastebin.ubuntu.com/6749529/11:30
tsdgeos:/11:31
Mirvtsdgeos: but the PPA builders stop before that, amd64 at DatePickerAPI and i386 at AlarmAPI11:31
Mirvalmost like random but environment specific (so reproducable, but only on that machine) corruptions or such11:31
tsdgeoselopio: seen the comment i made on your search branch?11:39
tsdgeosMirv: you should update the /proc patch to the new patch in https://codereview.qt-project.org/75282 that has now been merged and will be part of 5.2.2 (yeah missed 5.2.1 by one day)11:40
Mirvtsdgeos: ok11:51
=== _salem is now known as salem_
tsdgeosMirv: i can use the qt daily ppa to build the SDK11:54
tsdgeosdo you have any other ppa around?11:54
=== MacSlow is now known as MacSlow|lunch
tsdgeosMirv: qtdeclarative5-unity-action-plugin doesn't want to install11:55
tsdgeosQt5 Beta2  seems to have it11:56
tsdgeoslet me switch to that ppa11:56
Mirvtsdgeos: qt5-beta2 PPA has the rebuilds of other packages (required, because of the libqt5core5a transition)11:57
tsdgeosMirv: should i have both or just the qt5-beta2 PPA ?11:57
Mirvtsdgeos: if you want to test also qtbase stable branch snapshot in addition to the qtdeclarative snapshot that is already in qt5-beta2 PPA, keep the qt5-daily enabled11:57
Mirvtsdgeos: ^11:57
=== alan_g is now known as alan_g|afk
tsdgeosok11:57
MirvI didn't see difference however11:57
Mirvtsdgeos: you do know that some packages conflict if you plan use on your main desktop?11:58
tsdgeosMirv: i'm using a chroot11:58
Mirvright, good11:58
=== alan_g|afk is now known as alan_g
dednicksil2100: I need a new release for ubuntu-settings-components. Still safe as it's not used.12:15
dednicklarsu: can you sort a release for indicator-messages? need the fix for menu sensitivity12:22
sil2100dednick: I'll try, but will have to consult didrocks to maybe consider releasing it, as it has no affect on ubuntu-touch12:23
sil2100*effect12:23
dednicksil2100: hm. ok12:24
dednicktsdgeos: ok, that ubuntu-settings-component branch in unity8 is all set.12:33
=== alan_g is now known as alan_g|lunch
larsudednick: hm, I'd have thought that it gets released automatically again. seb128, do you know what's up?12:44
seb128larsu, no, we need a landing ask on the gdoc they have, let me add one for indicator-messages (and check other indicators)12:45
tsdgeosMirv: so there's a known issue with 32 bit machines12:45
seb128dednick, ^12:45
tsdgeosMirv: https://bugreports.qt-project.org/browse/QTBUG-3591712:45
larsuseb128: thanks!12:45
dednickseb128: thanks12:45
tsdgeosMirv: that is causing one of the problems for me in my 32bit chroot, now i'll create a 64bit chroot and see how it oes12:45
karniSaviq: tsdgeos: any chance you guys could help me out with (supposedly) not having DashViews built? lp:~unity-team/unity8/new-scopes-vj-integration http://paste.ubuntu.com/6755972/12:50
karniI got blocked on that bit yesterday, and it's holding me back. meh.12:51
tsdgeoskarni: does it work if you cd builddir and then run the make ?12:52
tsdgeosah wait that is your new stuff12:53
tsdgeosnot mine12:53
tsdgeosgive me a sec12:53
karniI could try that, sure12:53
tsdgeoskarni: are you setting all the paths and stuff?12:53
karnitsdgeos: That I may not know. I tried to add ResponsiveVerticalJournal to the appropriate CMakeLists, but I have a feeling that might be the problem.12:54
tsdgeoskarni: what branch?12:54
karnilp:~unity-team/unity8/new-scopes-vj-integration12:54
=== MacSlow|lunch is now known as MacSlow
karnitsdgeos: this is WIP, don't try too much ^ ^ I just want to get the make -C builddir/ tryResponsiveVerticalJournal not spit out compilation issues12:55
tsdgeossure12:55
tsdgeossorry lunch is calling, i'll try later, ok?12:55
karnisure thing :)12:55
karnienjoy your lunch12:55
Mirvtsdgeos: ok, interesting. that might explain some of eg. click-update-manager failure which only fails on i386. then again libhud-qt only fails on amd64..13:09
Saviqkarni, FWIW, until you actually get to integrating it with the new scopes (i.e. building a CardVerticalJournal.qml), you could base on lp:unity813:12
Saviqkarni, but it's fine, we can make it so later as well13:12
karniSaviq: I see, I could try that13:12
Saviqkarni, http://paste.ubuntu.com/6756080/ is what you're missing I'd say13:14
karniSaviq: will that now, thank you :)13:15
Saviqkarni, and it's fine, work on what you have right now, we can split it out from new-scopes later13:15
karniokay13:15
Saviqkarni, what I want is limit the diff between trunk and new-scopes13:15
* karni nods13:16
Saviqkarni, but new-scopes is an ok stop-gap anyway13:16
Saviqkarni, only thing we'll lose is some history, potentially13:17
karniUnderstood :) I do see what yo usuggested helps, thank you13:17
karnitsdgeos: Saviq helped me out with import paths :)13:17
=== alan_g|lunch is now known as alan_g
elopiotsdgeos: I did. Thanks for taking a look. I'm trying to fix that branch in13:30
elopiohttps://code.launchpad.net/~elopio/ubuntu-ui-toolkit/textfield_emulators/+merge/18979613:30
karnitsdgeos: Not sure if that's my fault somewhere13:36
karniASSERT: "m_indexColumnMap.contains(*modelIndex)" in file /home/karni/src/canonical/unity8/new-scopes/plugins/DashViews/verticaljournal.cpp, line 10113:36
karniAborted (core dumped)13:36
karnimake -C builddir/ tryResponsiveVerticalJournal from lp:~unity-team/unity8/new-scopes-vj-integration13:36
tsdgeoskarni: having a look13:50
karnitnx13:50
karnitsdgeos: There's one thing I don't understand well. Does Journal have a concept of delegate?13:51
tsdgeosyes13:52
karniok then : )13:52
tsdgeossame as for the listview or gridview13:52
* karni nods13:53
karnitsdgeos: FTR don't try to run the tests of responsive vertical journal, that's not ready. I just wanted to be able to *see* it through tryResponsiveVerticalJournal13:53
tsdgeossure13:53
karniAnd I thought it was high time for me to share whatever I had to keep things moving.13:54
karniEven if it's a core dump haha13:54
seb128MacSlow, hey, could you review https://code.launchpad.net/~townsend/notify-osd/remove-mouse-bubble-timer/+merge/193353 when you have some spare cycles?14:10
MacSlowseb128, noted14:10
karnitsdgeos: Please lemme know if you find anything, I'd love to help (if I can :) )14:11
seb128MacSlow, thanks14:11
tsdgeoskarni: know what's wrong alrady14:11
karnitsdgeos: \o/14:11
tsdgeoskarni: btw unfortunately the views we have don't support qml listmodels14:11
tsdgeoskarni: since they are not abstractitemmodel14:11
karnitsdgeos: oh. that doesn't sound good.14:12
tsdgeoskarni: so you'd have to wrap your ListModel in a SortFillterProxyModel or in a LimitModel14:12
* karni looks at the docs14:13
tsdgeosthey are our stuff14:13
tsdgeosnot qml stuff14:13
tsdgeosjust grep our source code14:13
karniokay14:14
dandradertsdgeos, so unity8 uses ubuntumirserver qpa?14:16
karnitsdgeos: Meaning, I'd have to wrap my the ListModel { id: fakeModel ... } in tst_ResponsiveVerticalCournal with SortFilterProxyModel, and pass that as the test model?14:17
dandraderbecause I run it from the terminal, which has "QT_QPA_PLATFORM=ubuntumirclient" and it just worked. so I wonder what's happening14:18
tsdgeoskarni: yep14:19
karnitsdgeos: thanks, I'll give it a shot14:19
tsdgeosdandrader: tbh i am not sure i know the answer to that question14:19
tsdgeoskarni: that won't fix the crash14:19
karnitsdgeos: oh. can I do something about the crash as well?14:19
tsdgeossure14:19
tsdgeoskarni: if (!isComponentComplete() || height() < 0) { to ::refill in abstractjournal.cpp14:20
karnitsdgeos: If it gets too complex, I could continue work on the Card Header instead. That depends if I can pull it off haha :)14:20
karnitsdgeos: to.. call refill() ?14:20
tsdgeoskarni: no in the refill call14:20
tsdgeoschange the if14:20
karnioh gotcha14:20
tsdgeosto that14:20
karnitsdgeos: ack14:20
tsdgeosdandrader: seen the comments i made in the organic grid review?14:24
tsdgeosyou did :D14:25
tsdgeosdandrader: can you review https://code.launchpad.net/~aacid/unity8/journal_misc_fixes/+merge/201785 ?14:26
tsdgeosoh man our friend test_Dash_Shown is back14:27
karnitsdgeos: wohoo. no crash, now wrap that model and hope to see something show up ;)14:29
tsdgeoscross fingers14:29
tsdgeosnic-doffay: standup14:32
elopiotsdgeos: do you know who can help me with the tests for the scopes and previews?14:33
tsdgeosme or mzanetti14:33
elopiotsdgeos or mzanetti: I will need big help with this branch:14:40
elopiohttps://code.launchpad.net/~elopio/unity8/app_preview/+merge/20171814:40
elopiobecause the code I'm doing is not testable. Please take a look at the line 107, and ping me back when you have some time to discuss.14:41
karnitopic: '[Ubuntu-phone] ANN: Ubuntu Core/Touch Android 4.4 support [..]'14:45
=== dandrader is now known as dandrader|lunch
Saviqdidrocks, /me needs help with sane versioning in recipes, if you have 5 minutes15:02
karniSaviq: there's a question from my team - do we know if the Carousel has any limitations, like if it could not work in some template parameter combination?15:02
Saviqkarni, there's a few, all should be listed in the spec15:02
Saviqkarni, like there's a minimum of items, it can't have summary, it has to be vertical I believe15:03
karniSaviq: thanks, I'll follow up with him/see the spec15:03
mzanettielopio: hey. so what exactly are you trying to do?15:03
mzanettiyou writing tests for the tests? :)15:03
elopiomzanetti: hell yeah! I like danger.15:04
mzanettibut then, who is going to write the tests for those? :P15:04
elopiomzanetti: when writing the test helpers for the SDK, we found that they need tests inside the project.15:04
mzanettiah... hmm, ok15:05
elopiootherwise, they would be tested indirectly by the projects using them, and it's caos.15:05
mzanettiyeah, I guess makes sense15:05
elopiomzanetti: the problem with testing the DashApps and AppPreview is that we can currently access them only through the click scope15:06
elopioand that means external communication with a server we don't control, so we will end up with a test we don't control.15:06
elopiodoes that make sense?15:06
mzanettimhm15:07
mzanettielopio: but why would you need to access those from the sdk helpers?15:07
elopiomzanetti: for example, I need to check that the helper called get_applications actually returns the list of app names displayed on the scope.15:08
elopiofor that, I need to have a scope with a list of know apps.15:09
elopiowhat would be great is that instead of accessing DashApps through the click scope, we have an alternate scope only for testing with hardcoded values.15:11
mzanettielopio: I think I'm missing something15:11
mzanettielopio: you said you need to do this for the test helpers in the sdk15:12
mzanettibut I don't really see why another app would need to deal with the dash contents15:12
mzanettishouldn't those helpers just be there for lets say, unlocking the greeter and such stuff?15:12
karniSaviq: Should I file a bug? spec "minimum number of items in the carousel is 5", code if (results.count <= 6) layout = "grid";15:12
karniSaviq: Or is the spec not up to date?15:13
karni(that's why I asked if I should file it)15:13
elopiomzanetti: the DashApps helpers and DashPreview helpers should be inside unity8, because the code for them is in unity8.15:13
elopioThen we will have tests in the project unity-scope-click that will use those helpers in order to test the functionality provided by the click scope.15:13
Saviqkarni, I don't think the spec should say that - 5 might not be enough15:13
elopiomzanetti: are you with me there?15:14
karniSaviq: I'll leave a comment in the spec15:14
Saviqkarni, thanks15:15
karninp :)15:15
mzanettielopio: I don't think that makes much sense tbh15:16
elopiomzanetti: oh, this might help:15:16
elopiohttps://code.launchpad.net/~elopio/unity-scope-click/autopilot-open_preview/+merge/20179715:16
elopiothat's the test I'm writing, that needs helpers from unity.15:16
mzanettielopio: all this causes are more fragile tests15:16
elopioline 10315:16
elopiothat code, in my opinion, should be part of unity8, not of the click scope.15:17
elopiomzanetti: why more fragile?15:17
mzanettielopio: because if we mess up in unity, your scope tests will fail15:17
mzanettielopio: imho the scope tests should just tests the scope, not unity15:17
elopiomzanetti: no, because if you mess in unity, the self-tests for the helpers will fail and you won't be able to merge.15:17
elopiomzanetti: well, that would be nice too. But how do I open the scope without unity?15:18
mzanettiyeah... its like having tests for tests for tests for nothing. why not just test the scope itself?15:18
mzanettielopio: I'm sure there is a way15:18
elopiomzanetti: ok, lets say that you change the objectName titleLabel15:18
elopioyou do that change in unity.15:19
elopioand if we don't have tests in unity to catch that change, it will result in a failure in unity-scope-click15:19
mzanettielopio: exactly. the unity-scope-click tests should not depend on some objectName in unity15:19
tsdgeosSaviq: what do you think about forcing the bad loop for that test?15:20
elopiomzanetti: oh, but that's unavoidable. Because the code for the UI unity-scope-click is using lives in the unity project.15:20
Saviqtsdgeos, not sure what you mean?15:20
elopiomzanetti: what we need to do is provide helpers from unity, so unity-scope-click uses those helpers and doesn't have to take care about objectNames.15:20
tsdgeosSaviq: the testDashShown, does not fail if you force the non threaded scenegraph loop15:20
Saviqtsdgeos, ah15:21
elopioand if we change an objectName, or layout, or even some functionality, we change the helper and it will be transparent for unity-scope-click15:21
Saviqtsdgeos, yeah, that could be useful15:21
mzanettiI'm still not convinced. can't we just fire up that scope alone, without unity and test it?15:21
mzanettiSaviq: ^?15:21
elopiomzanetti: I would love that15:21
tsdgeosSaviq is working on that in the dash tool, no?15:22
elopiobut the code for the UI would still live in the unity project.15:22
mzanettielopio: you shouldn't test the ui15:22
Saviqtsdgeos, I did, but then you broke it with the dashbar15:22
mzanettielopio: just do queries on the scopes api15:22
tsdgeos^_^15:22
mzanettithere are tests inside unity8 which test the ui15:22
Saviqtsdgeos, PROPERTIES ENVIRONMENT... in CMakeLists.txt should do what we need for the env15:22
elopiomzanetti: eventually, we will need to test the integration of unity, unity-scope-click, the search server and the software center agent server.15:23
tsdgeosSaviq: oka, gonna try that, ideally i'd like it to be inside a "if qt 5.0" so if we update to 5.2 and still happens we really need to look at it15:23
elopioif we don't do autopilot tests for that, we will have to do it manually.15:23
Saviqtsdgeos, should be doable in CMake15:23
Saviqmzanetti, elopio, we should only test a few journeys, and then through actual unity8 shell15:23
mzanettielopio: sure, but that's another thing15:24
elopiomzanetti: that's what I'm doing here.15:24
Saviqmzanetti, elopio, a very high level test15:24
mzanettielopio: yeah, what saviq said, those full stack integration tests should live inside the unity8 repo15:24
elopiomzanetti: I'm testing a user journey to buy an app.15:24
Saviqmzanetti, should they? I don't think so15:24
Saviqmzanetti, they're ubuntu tests, not unity8 tests15:24
mzanettihmm...15:24
elopioagree to that.15:25
mzanettiSaviq: but them being part of unity-scope-click feels wrong too15:25
elopioand those ubuntu tests need helpers to interact with unity8, and with unity-scope-click.15:25
tsdgeospstolowski: is this yours? https://bugs.launchpad.net/bugs/126945615:25
ubot5Ubuntu bug 1269456 in Unity 8 "Infographic doesn’t seem to be translatable" [Undecided,New]15:25
tsdgeosor was that pete-woods'? ↑15:25
pete-woodstsdgeos: the strings are in the apps providing the data15:26
pstolowskitsdgeos, not mine15:26
tsdgeospstolowski: you start with p too so you and pete-woods are the same person in my mind ^_^ :D15:27
elopiomzanetti: for now, what we have in unity-scope-click are also helpers.15:27
elopioMaybe the test for the whole journey should live in a project with a bigger scope, I like that.15:27
mzanettielopio: ok... I'm convinced now... we need those helpers.15:27
elopiowhere I think we disagree is that I say the helpers need to be next to the code that implements their functionality.15:27
pete-woodstsdgeos, pstolowski: http://bazaar.launchpad.net/~phablet-team/camera-app/trunk/view/head:/camera-app.qml15:27
pstolowskitsdgeos, :)15:27
elopiomzanetti: ok, so we disagree even before that :)15:27
elopiomzanetti: how would you do it without helpers?15:28
mzanettias I said, I agree now that we need those helpers15:28
mzanettilet me check the code again15:28
elopioahh, sorry.15:28
elopiomzanetti: I got it backwards :)15:29
mzanettielopio: ok... so your problem now is that the test for the helpers (not the actual full stack test) is using the real scope backend instad of some mock, right?15:34
mzanettitsdgeos: do we have any mocks for scope backends yet?15:36
tsdgeoswe do15:36
mzanettifor which ones?15:36
tsdgeos./mocks/Unity/moc_fake_scope.cpp15:36
tsdgeosin tests15:36
mzanettiah right, of course15:36
mzanettielopio: so, what you'd need to do is to start unity with the fake plugins for that test15:37
Saviqmzanetti, (got busy, but) I think such high level tests deserve a completely separate project15:38
mzanettiSaviq: yeah, +115:38
mzanettimeh.. hes gone15:38
mzanettielopio: welcome back :)15:40
mzanettielopio: how far did you follow?15:40
elopiosorry15:42
elopio[09:41:32] <mzanetti> Saviq: yeah, +115:42
elopiothat was the latest I got.15:42
mzanettielopio: ah ok. you got everything then15:42
mzanettielopio: so, what you'd need to do is to start unity with the fake plugins for that test15:42
mzanettithis is the bottomline15:42
elopiomzanetti: yes, I want that!15:42
elopiodo you know how to do it?15:43
mzanettielopio: you can do this by exporting an env var before starting unity15:43
mzanettiiirc its LD_LIBRARY_PATH15:43
elopio:D:D:D15:43
mzanettior QML2_PLUGIN_PATH15:43
elopioI thought I would be stuck with this for a couple of weeks :D15:43
mzanetticheck out run.sh15:43
* elopio checks.15:43
mzanettielopio: so if you just run ./run.sh, then you'll have those fake backends15:44
mzanettielopio: autopilot should normally _not_ use them.15:44
mzanettielopio: but your case makes a valid exception15:44
elopiook, I'll play with it and be back with the branch finished probably tomorrow.15:45
mzanettielopio: please add comments on those tests on why you do "unit tests" with autopilot15:45
elopiomzanetti: I'll try to explain what I explained to you in test_emulators.py, sure.15:46
elopioSaviq: can you please explain to me what's the dash tool? It sounds like something I will enjoy.15:49
Saviqelopio, you'll be able to tweak the display of the scopes live15:51
Saviqelopio, and then paste the result into your $scope15:51
elopioSaviq: is that something for users, or for developers?15:52
=== Wellark_ is now known as Wellark
Saviqelopio, scope developers16:07
tsdgeosSaviq: https://code.launchpad.net/~aacid/unity8/bad_loop_dash_test/+merge/20180216:08
elopioI need help again.16:21
elopiowhen we run the tests from jenkins, will that builddir exist?16:21
elopioor are we just running from the installed deb?16:21
tsdgeosi think we run them on compile time16:23
tsdgeosbut not totally sure16:23
elopioI'll just mark the branch as ready to review to see if jenkins complaints.16:24
bregmaSaviq, I finally got Unity8 not crashing on Mir on the desktop, but I get 'file:///usr/share/unity8/Shell.qml:20:1: module "Unity.Application" is not installed' ... where should this be pulled from (assuming no fake env)?16:29
seb128bregma, hey, could somebody look at https://launchpadlibrarian.net/162536013/buildlog_ubuntu-trusty-ppc64el.unity_7.1.2%2B14.04.20131106.1-0ubuntu2_FAILEDTOBUILD.txt.gz ?16:39
bregmaseb128, I think ChrisTownsend is already on it16:40
seb128great16:41
bregmahttps://code.launchpad.net/~townsend/unity/fix-zeitgeist-build-failure/+merge/20179116:41
seb128bregma, ChrisTownsend: thanks16:41
tsdgeosbregma: isn't that unity-mir?16:44
tsdgeosbregma: Unity.Application i mean16:44
bregmatsdgeos, I dunno, that's why I'm asking16:44
tsdgeosbregma: should be16:44
tsdgeosbregma: do you have unity-mir installed?16:44
bregmatsdgeos, hmm, doesn't look like it16:45
tsdgeosget it then16:45
bregmaif it's required, shouldn;t it be a package dependency?16:45
bregmaah, I see the binary package name is libunity-mir1, it's already installed16:47
bregmafingers point at the usual suspect of assuming an Android/Linux system16:47
tsdgeosi guess16:47
karnitsdgeos: Do we want a minimumColumnWidth property for VerticalJournal? It's not always the case that if dev sets maximumNumberOfColums in ResponsiveVerticalJournal to 100 - that it actually makes sense, right? What should be the sanity measure?16:48
bregmais there an environment variable that needs to be set to make Qt pick up a nonstandard plugin path?16:48
karnitsdgeos: a fixed minimumColumnWidth?16:49
tsdgeosbregma: QT_PLugIN_PATH and loads of otehrs, depend of what you want to do16:49
bregmait's a start16:49
karnitsdgeos: Honestly, I'm having a problem coming up with formula for case when the no. of visible columns should actually be smaller than maximumNumberOfColumns set. Does that make sense?16:49
tsdgeoskarni: i think that if someone wants to shoot himself on the foot16:49
tsdgeosit's his fault16:50
karnitsdgeos: That makes my life easier, lol ;)16:50
karniGuess thats' too much thinking on my end. Aight.16:50
tsdgeosbregma: there's also QML_IMPORT_PATH i think is called16:50
tsdgeosbregma: what are you trying to do?16:50
bregmatsdgeos, I am trying to get a Unity8 user session running on the Ubuntu Trusty desktop, as part of the ongoing convergence effort16:51
tsdgeosbregma: sure, i mean right now, what plugin you want to force?16:52
bregmatsdgeos, I want to get the Unity.Application to be found ...  I recall having to set the environment variables before16:52
tsdgeosbregma: if it's installed in usr/lib/*/qt5/ you should not need to set anything16:54
tsdgeosit's just picked as the other billions of plugins we use16:54
karnitsdgeos: I see your verticaljournal in its full glory. Success :) Thank you!16:55
bregmawell, QML_IMPORT_TRACE will give me data16:55
tsdgeoskarni: cool16:55
tsdgeosdandrader_: seen the misc fixes branch for the journals?17:00
bregmawell, the magic incantation is QML2_IMPORT_PATH=/usr/lib/x86_64-linux-gnu/qt5/imports/Unity-Mir ... which means arch-specific config files hashtag sadface17:10
bregmabut at least I now get a purple box in the lower left corner of my screen when loggin in to unity8 on the desktop17:11
bregmaon to the next great adventure17:11
=== dandrader_ is now known as dandrader
bregmaah, so my new problem is that all the shaders are failing to compile, such fun, wow, very setback17:17
bregmaanyone have any clue about QOpenGLShader in the Unity8 stack17:18
bregma?17:18
dandraderbregma, you might have better luck asking in #ubuntu-mir. guys there know much more about GL stuff (even if they lack in Qt knowledge)... and there's a GL debug log object in Qt you could use to get a hint of what's going on the GL side17:22
dandradernamely QOpenGLDebugLogger17:22
dandraderso hopefully an error message will show up in there17:23
bregmadandrader, it's obvious why the shaders aren't compiling, I need to figure out where the shaders come from and why the wrong ones are being picked up by Qt ...  probably another environment variable needs to be set somewhere17:24
dandraderah ok17:24
elopiomzanetti: still around?17:29
mzanettielopio: yep17:29
elopiomzanetti: the mock is using the generic DashPreview instead of AppPreview. How can I change that?17:29
mzanettielopio: hmm... I think you'd need to create a new one. but I'd need to look it up myself17:31
mzanettilet me just finish this task here and I'll have a look17:31
elopiomzanetti: yes, thanks, because I have no idea how to create one.17:32
bregmaah, OK, my problem is that Qt5 is built on desktop to always assume an OpenGL context, and the quubuntu project used in Unity8 forces an OpenGL|ES context, giving a fundamental impedence mismatch17:43
bregmaso Qt itself feeds GLSL into GLSL|ES and everyone ends up unhappy and eating ice cream from the bucket17:44
mzanettielopio: hi. I have time for you now17:57
mzanettielopio: so, I see there is already a fake_application_scope17:57
elopiomzanetti: yes, I'm using it right now.17:58
elopiothe thing is that it's not using the right preview.17:58
mzanettielopio: mhm... that seems to be a bug17:58
mzanettiprobably in the fake scope, as it does work in the real thing17:58
elopiomzanetti: a bug on the fake?17:58
elopioyeah, the real thing is using AppPreview.17:59
mzanettilet me check how we determine which preview to use17:59
mzanettielopio: hmm... seems that DeeModel which is created lacks some inforamtion about rendererid and contentType18:03
=== dandrader is now known as dandrader|afk
elopiomzanetti: which file are you looking at? I didn't even could find the fake source code.18:03
mzanettielopio: tests/mocks/Unity/fake_applications_scope.cpp18:03
mzanettiso far I have no idea where that DeeModel is filled18:04
elopiomzanetti: alecu might be able to help us with this.18:09
elopiohe's having lunch though.18:10
elopiomzanetti: I'm not sure if you are close to EOD, but please don't stay just for me, we can continue tomorrow.18:10
mzanettielopio: no worries....18:11
mzanettielopio: got it18:12
mzanettielopio: tests/mocks/Unity/fake_preview.cpp18:12
mzanettielopio: in there is a method rendererName()18:12
mzanettielopio: it always returns generic-preview18:13
=== alan_g is now known as alan_g|EOD
mzanettielopio: the proview is created in in tests/mocks/Unity/fake_scope.cpp line 5018:13
mzanettielopio: try doing something like if (m_id == "applications.scope") { preview->setRendererName("preview-application"); }18:15
mzanettithat should do I hope18:15
elopiomzanetti: let me try that.18:15
=== dandrader|afk is now known as dandrader
=== salem_ is now known as _salem
alecuhi mzanetti, elopio: anything I can help with?18:26
mzanettialecu: hi. I think we found everything18:27
alecugreat18:27
mzanettielopio: does it work?18:27
elopiomzanetti, alecu, sorry, some real life stuff came up.19:01
elopiomzanetti: I don't really now where should I put that code.19:01
elopioI don't see any preview variable in the Scope.19:01
elopioand there's one inside the connect statement, but  p->setRendererName says there's no setRendererName member.19:02
elopioI'm sorry, this is the first line of c++ code I've written in like 5 years :)19:02
mzanetti:)19:08
elopiomzanetti: what about this? http://paste.ubuntu.com/6757904/19:25
elopioit works, but is that good c++ code?19:26
mzanettielopio: hmm... might work... but not nice19:26
mzanettione sec, I'll push something for you19:26
elopioyeah, I bet I need more patience than what you thought first when volunteering to help me :D19:27
elopiowell, at least I made it work.19:27
mzanettielopio: do you have a branch where you push this stuff?19:28
mzanettiah this one https://code.launchpad.net/~elopio/unity8/app_preview/+merge/20171819:29
elopiomzanetti: that one, yes.19:30
mzanettielopio: https://code.launchpad.net/~mzanetti/unity8/fake-application-previews/+merge/20183619:30
elopiomzanetti: so simple :D thank you very much.19:36
mzanettino19:41
imlostbroI'm having trouble getting 'Details' to open in System Settings. Nothing pops up and when I go to Task Manager, I see gnome-control-center gradually hogging up ram. Does anyone know a fix??22:41
=== broder_ is now known as broder

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