These are chat archives for AvaloniaUI/Avalonia

13th
May 2016
danwalmsley
@danwalmsley
May 13 2016 08:42
@grokys iv added a new message to #513 with commit details
Steven Kirk
@grokys
May 13 2016 08:44
thanks
Steven Kirk
@grokys
May 13 2016 12:50
something really weird happened to the repos just before the rename
at this commit: AvaloniaUI/Avalonia@a8e3b70 part of the property validation branch seems to have been merged into master but there's no actual record of that merge, and the history says that the file was actually merged last month when it wasn't!
i'm really confused
this is going to be a nightmare to sort out...
Steven Kirk
@grokys
May 13 2016 12:59
i have absolutely no idea what that commit is. it's like a mixture of loads of different commits
and files are changed that aren't even listed in the commit
Steven Kirk
@grokys
May 13 2016 16:02
well hopefully cleaned up most of that mess
@jkoritzinsky had to merge my property validation branch to master by hand, hopefully i didn't miss anything
basically somehow an old commit of your work had got merged to master
Steven Kirk
@grokys
May 13 2016 18:40
sorry @danwalmsley i've still not had chance to look at your issue. had to fix the mess i'd made with the rename
i did fix the problem where the window goes crazy draggin between monitors with different scaling, as now i have a 2nd monitor, whooop!
and it was a simple fix
will hopefully get time tomorrow or sunday
danwalmsley
@danwalmsley
May 13 2016 18:54
@grokys thanks man
which monitor did you get?
theres no going back once you have 2
Steven Kirk
@grokys
May 13 2016 18:55
a dell U2515H
seems pretty good!
danwalmsley
@danwalmsley
May 13 2016 18:55
decent res
Steven Kirk
@grokys
May 13 2016 18:55
yeah
i left the monitor my old job gave me in the UK and felt bad asking them for a new one ;)
so needed to get a new job obviously!
danwalmsley
@danwalmsley
May 13 2016 18:56
haha yeah
you recovered from SF?
Steven Kirk
@grokys
May 13 2016 18:56
not really. woke up at 5:15 this morning
jetlag from SF is something else
danwalmsley
@danwalmsley
May 13 2016 18:57
ha yeh
good place to go as a tourist?
Steven Kirk
@grokys
May 13 2016 18:58
yeah, though i didn't do that much touristy stuff as i was knackered!
the main thing i saw was homeless people. so many homeless people
and the GH office, which is incredible
danwalmsley
@danwalmsley
May 13 2016 18:58
yeh, a few of my friends told me when you goto the US you expect it to be like UK
but its not
there are a lot of people way below the poverty line
I guess that's what happens when you don't have a social safety net like we havde
Steven Kirk
@grokys
May 13 2016 18:59
i've been to the US quite a few times, and yeah it's like that. but the amount of poverty in SF is another level
danwalmsley
@danwalmsley
May 13 2016 18:59
wow
Steven Kirk
@grokys
May 13 2016 18:59
seems if you have mental health problems you're just on the street
danwalmsley
@danwalmsley
May 13 2016 19:00
shame
Steven Kirk
@grokys
May 13 2016 19:00
the amount of money is something else too
danwalmsley
@danwalmsley
May 13 2016 19:00
is it an expensive city?
Steven Kirk
@grokys
May 13 2016 19:00
fucking expensive yeah
danwalmsley
@danwalmsley
May 13 2016 19:00
did you goto golden gate bridge?
1 bed appt 3.5 grand a month
puts london to shame
danwalmsley
@danwalmsley
May 13 2016 19:01
that's incredible
Steven Kirk
@grokys
May 13 2016 19:02
no, didn't make it to the bridge, i intended to cycle there but i was too tired when it came to it
danwalmsley
@danwalmsley
May 13 2016 19:02
cycling across with would be amazing
so you going to be making regular trips now?
Steven Kirk
@grokys
May 13 2016 19:03
yeah, probably? got a few trips coming up in the next few months but not back to SF
going to copenhagen, portland and colorado between now and aug
danwalmsley
@danwalmsley
May 13 2016 19:03
we should try and get Perspex into some talks, or dev events soon
get it noticed a bit more
Steven Kirk
@grokys
May 13 2016 19:04
yeah, i'm hopefully doing a lightning talk at .net fringe
danwalmsley
@danwalmsley
May 13 2016 19:04
awesome
Steven Kirk
@grokys
May 13 2016 19:04
tempted to submit for a proper talk but with starting a new job it might be a bit much
danwalmsley
@danwalmsley
May 13 2016 19:04
that Europe or US?
Steven Kirk
@grokys
May 13 2016 19:05
that's in portland, US
danwalmsley
@danwalmsley
May 13 2016 19:06
Id have had a chance of going to a European one
I hope it gets streamed 😎
Steven Kirk
@grokys
May 13 2016 19:06
you going to do a talk? ;)
danwalmsley
@danwalmsley
May 13 2016 19:11
I had to do a best man speech once that was difficult
I dunno maybe i could if I practised
I
Steven Kirk
@grokys
May 13 2016 19:14
ha yeah that's the only speech i've ever done
lasted about 2 minutes, i was rubbish
Nikita Tsukanov
@kekekeks
May 13 2016 20:16
@grokys I've got an idea how to fix dll/pcl issue with designer
We just need to ask the user to select actual exe
In which that dll will be used
And store that in project file as a custom item or something
So it won't need any logic for resolving actual package versions
Nikita Tsukanov
@kekekeks
May 13 2016 20:35
BTW, why did we extracted designer support to a separate assembly?
Nikita Tsukanov
@kekekeks
May 13 2016 20:47
It also broke some logic in app type locator
I need to write tests for that stuff or something-
Darnell Williams
@Seeker1437
May 13 2016 20:47
@grokys @jkoritzinsky I was curious as well
How would one go about fixing the issue @kekekeks ?
Nikita Tsukanov
@kekekeks
May 13 2016 20:49
For now I'm fixing designer initialization in appbuilder branch
Darnell Williams
@Seeker1437
May 13 2016 20:50
Oh okay.
@kekekeks I was curious, how do you think dealing with file renaming or relocations within the designer? Well it's more the VS Extension that handle that but it needs to be handled.
Nikita Tsukanov
@kekekeks
May 13 2016 20:52
https://i.imgur.com/qKHLsw4.png got it working with controlcatalog
VS extension obviously needs to be updated
But for now I'm going to write tests for designersupport api
Darnell Williams
@Seeker1437
May 13 2016 20:53
Also dealing with how VS doesn't truly "close" documents until a new solution or project is loaded, closed or if VS is closed
Nikita Tsukanov
@kekekeks
May 13 2016 20:53
Oh, that might be why we are having issues with killing designer process

how do you think dealing with file renaming or relocations within the designer

I'm not

Designer works with compiled assemblies and XAML text
It doesn't deal with source files at all
BTW, @grokys , RegisterServices should be called by AppBuilder
not from constructor
Nikita Tsukanov
@kekekeks
May 13 2016 21:59
@grokys
AvaloniaUI/Avalonia#535
There is also some weird condition in which Avalonia.Layout.UnitTests.LayoutManagerTests.Invalidating_Child_Should_Remeasure_Parent occasionly failes
I think that AppBuilder branch could be merged
Nikita Tsukanov
@kekekeks
May 13 2016 22:04
Whew, now it's time for Stellaris
The Space God Emperor of Catkind won't conquer the galaxy for himself, unfortunately
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:13
@kekekeks why not query any projects in the solution that reference the cirrect project and is an exe and select that
Nikita Tsukanov
@kekekeks
May 13 2016 23:14
Well, there may be multiple executables
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:14
Or even better generate an exe in another directory borrowing the loaded styles and such
Nikita Tsukanov
@kekekeks
May 13 2016 23:14
You still need to resolve package references that way
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:15
In the background
Nikita Tsukanov
@kekekeks
May 13 2016 23:15
And you can't do that properly if one is using avalonia without nuget
from our samples directory or from some fork for example
One can also have one control in two apps with different styles
And want to check how it looks in both of them in designer
It's also not guaranteed that dll with xaml contains app class
So it's kinda inevitable to have user to select windows app project from VS
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:18
Okay then jist generate an app that displays the control while borrowing the theme from the current project
Nikita Tsukanov
@kekekeks
May 13 2016 23:18
"Current project" is your dll with control
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:18
What I mean is say the project is a dll project right?
Nikita Tsukanov
@kekekeks
May 13 2016 23:19
Yep
There is no problem with xaml in exe project
because it's output directory is guaranteed to have everything needed
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:19
Right, designer can say out this is a dll, let me generate a stub that automatically consumes the control in the background and use that instead
Nikita Tsukanov
@kekekeks
May 13 2016 23:20
For dll we need to use exe project that references said dll
We can auto-detect it and ask user to select one if there are multiple
Argh
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:20
Roght but couldnt we hide that and make the designer reference the dll to an exe?
Nikita Tsukanov
@kekekeks
May 13 2016 23:20
You can't generate that stub
You don't know where to get platform-specific references from
You can't make safe assumptions about that
You also don't know where app class is located
Darnell WIlliams
@ImaBrokeDude_twitter
May 13 2016 23:22
Umm huh?
Oooh pkay
Makes sense we dont have something that shows the correct app in the project setting