These are chat archives for AvaloniaUI/Avalonia

18th
Feb 2018
Steven Kirk
@grokys
Feb 18 2018 00:15
ok 0.6.0 uploaded to nuget, waiting for it to come online
Leviathan Jeanis
@isavegas
Feb 18 2018 01:03
Having an issue with ListBox.DataTemplates. Specifying a DataTemplate with DataType="namespace:ClassName" causes "System.ArgumentOutOfRangeException: Length cannot be less than zero"
Using a generic DataTemplate and allowing the CLR to .ToString() doesn't throw the ArgumentOutOfRangeException
Leviathan Jeanis
@isavegas
Feb 18 2018 01:16
Nevermind. It turned out that I needed ;assembly= in my xmlns:glitterTools="..." declaration. The Substring() call to parse that value was failing, and the exception was not caught and wrapped. Might be a good idea to do that and instead use ArgumentException to specify that the assembly field should be provided.
Steven Kirk
@grokys
Feb 18 2018 01:17
@isavegas ah glad you worked it out
yes we can actually remove the need to supply the ;assembly= part now
i'm going to add an issue about this
Leviathan Jeanis
@isavegas
Feb 18 2018 01:18
I think the two biggest things tripping me up are documention (or rather, the lack thereof) and lack of IDE support. Both pretty large undertakings, though, so I'm not judging too harshly. :)
Steven Kirk
@grokys
Feb 18 2018 01:18
yeah, we know ;)
Leviathan Jeanis
@isavegas
Feb 18 2018 01:18
Alright, thanks @grokys.
Steven Kirk
@grokys
Feb 18 2018 01:19
documentation has to be a big priority now
but y'know we're programmers ;)
it doesn't come easy
Leviathan Jeanis
@isavegas
Feb 18 2018 01:19
What are you planning on using for documentation?
///?
Steven Kirk
@grokys
Feb 18 2018 01:20
yeah well we have some API docs in the code
more important right now i think is tutorials/long-form documentation
@isavegas AvaloniaUI/Avalonia#1375 - feel free to comment to add anything else
Leviathan Jeanis
@isavegas
Feb 18 2018 01:23
That about sums it up. I mean, it's not a particularly complicated issue. Just a little misleading when you aren't too familiar with the framework.
Is there a repo for http://avaloniaui.net/, btw?
Might be nice to allow community members to submit PRs to add basic entries to http://avaloniaui.net/tutorial/. At least for the core mechanics like {Binding} and the like. As someone who has never touched WPF, I had to dig through github issues to find out about {Binding #name.Property}
Leviathan Jeanis
@isavegas
Feb 18 2018 01:31
Ah, I don't know how I missed that. I'll have to dig into that. Thanks, @jp2masa!
Steven Kirk
@grokys
Feb 18 2018 01:48
yeah that would be appreciated. the site is very bare-bones right now!
Leviathan Jeanis
@isavegas
Feb 18 2018 03:15
How would I make my ListBox update when changes occur to ListBox? I assume it has something to do with AvaloniaObservable, but I'm really not sure how to wire it up.
Leviathan Jeanis
@isavegas
Feb 18 2018 03:47
I love your MinHeight and MinWidth handling https://i.imgur.com/Ilpealx.gifv
Nikita Tsukanov
@kekekeks
Feb 18 2018 05:58
Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).
@grokys
I think we need to update the key
Nikita Tsukanov
@kekekeks
Feb 18 2018 09:47
I've manually uploaded the packages
I think we can update VS extension now
danwalmsley
@danwalmsley
Feb 18 2018 11:48
remember to bump version on master branch to 0.7 now, otherwise the myget packages will appear as if they are behind the nuget ones!
danwalmsley
@danwalmsley
Feb 18 2018 11:55
@grokys custom-rx info on windows
(ide loaded only) - (editor / project opened)
74mb - 96mb (custom-rx)
81.8mb - 115.5mb (master)
maybe not quite as much as you were hoping for, (but still quite a difference)
Steven Kirk
@grokys
Feb 18 2018 12:16
yeah not as much as i'd hoped for
@danwalmsley we should bump master to 0.6.1 not 0.7
danwalmsley
@danwalmsley
Feb 18 2018 12:17
oh yeah :)
Steven Kirk
@grokys
Feb 18 2018 12:25
ok @kekekeks does AvaloniaUI/AvaloniaVS#57 look good to merge to you?
oh actually need to update the nuget version
shall we leave the nuget.config that points to the CI myget feed in the project?
Steven Kirk
@grokys
Feb 18 2018 12:30
ok, packages updated
danwalmsley
@danwalmsley
Feb 18 2018 12:36
@wieslawsoltes only just saw your build fixes for it thanks
@aelij you may be interested in this :)
Steven Kirk
@grokys
Feb 18 2018 12:49
ok @kekekeks i'm pretty sure everything looks ok, so i've merged the PR updated the extension on the marketplace
if someone could check it and give me a :+1: i can upload the release blog post to my blog
not sure how to update avaloniaui.net yet
Nikita Tsukanov
@kekekeks
Feb 18 2018 12:52
We should make nuget releases more often from now on
There is a "preview package" feature after all
Please, make changes to avaloniaui.net repository so I could rebuild and upload it
danwalmsley
@danwalmsley
Feb 18 2018 12:54
image.png
2 extensions?
@grokys avalonia extension is looking great
its actually usable now :)
Nikita Tsukanov
@kekekeks
Feb 18 2018 12:58
You need one from "Avalonia Team"
We have somehow lost the access to the old account
danwalmsley
@danwalmsley
Feb 18 2018 12:59
@grokys i'll update these templates...
to match
Steven Kirk
@grokys
Feb 18 2018 12:59
oh yeah that would be great!
both the extensions are from "Avalonia Team" and both are 0.6.0.0
weird
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:00
what
Steven Kirk
@grokys
Feb 18 2018 13:00
they both point to the same URL!
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:00
@grokys you have probably changed something in the package version
when updating csproj file
Steven Kirk
@grokys
Feb 18 2018 13:00
hmm
but why would both extensions be the same version?
and have the same URL?
It's recognized as an updated version though
Steven Kirk
@grokys
Feb 18 2018 13:02
image.png
image.png
here's the blog post on my blog: https://grokys.github.io/avalonia-beta1/
oh actually, you asked me to change a few things @kekekeks
i don't think it did that
need to find the messages
Created by: avalonia
Created by: Avalonia team
Hmmmm
Well, the second one might be some test build
26.04.2017 is two weeks before the release
Steven Kirk
@grokys
Feb 18 2018 13:08
crap, i can't find what you asked me to change in the blog post
gitter's search sucks
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:08

here's the blog post on my blog

I thought that we are posting announcements on avaloniaui.net now

Steven Kirk
@grokys
Feb 18 2018 13:09
yeah that will be the official source
but i thought i might as well continue posting them on my blog too?
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:09
I even remember asking for permission to copy-paste your old articles
Steven Kirk
@grokys
Feb 18 2018 13:09
if you think that's a bad idea i can take it down
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:09
Well, it might be bad for SEO
search engines don't like the same content to be posted on multiple domains
Steven Kirk
@grokys
Feb 18 2018 13:10
yeah i guess, i can just post a link to avaloniaui.net on my blog
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:10
And usually recognize the first version they encounter as the "original" source and might completely ignore other copies
Steven Kirk
@grokys
Feb 18 2018 13:10
ok, lets get it up on avaloniaui.net and i'll change my blog to link to that
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:11
I really need to setup some kind of CI for the website builds. The problem is that compiled website (with docs) is ~500MB
With thousands of files
Steven Kirk
@grokys
Feb 18 2018 13:12
yeah, that would be good
ok @kekekeks AvaloniaUI/avaloniaui.net#2
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:17
Is there a way to export history from gitter?
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:18
A simple grep is far more efficient than their joke of a search engine
I'll make changes directly to the PR
Steven Kirk
@grokys
Feb 18 2018 13:25
cool, thanks
danwalmsley
@danwalmsley
Feb 18 2018 13:28
@grokys if you get a second to accept this https://github.com/VitalElement/AvalonStudioTemplates.git
It will allow me to see if Avalonstudio still works with them
its only a few minor changes
Steven Kirk
@grokys
Feb 18 2018 13:28
how do i accept a repository?
danwalmsley
@danwalmsley
Feb 18 2018 13:28
oh sorry
Steven Kirk
@grokys
Feb 18 2018 13:28
you mean AvaloniaUI/avalonia-dotnet-templates#7 ?
danwalmsley
@danwalmsley
Feb 18 2018 13:29
AvaloniaUI/avalonia-dotnet-templates#7
yeah
Steven Kirk
@grokys
Feb 18 2018 13:29
just one small thing - added a review
danwalmsley
@danwalmsley
Feb 18 2018 13:30
@kekekeks does new visual studio preview still require net461 to work
or will it now preview netcore apps?
Steven Kirk
@grokys
Feb 18 2018 13:31
it will now preview netcore apps i'm pretty sure
but if you're using the .net core templates, then you're probably not using VS anyway
danwalmsley
@danwalmsley
Feb 18 2018 13:32
yeah, i was just thinking about when you start on linux
then move to windows
Steven Kirk
@grokys
Feb 18 2018 13:32
you're probably not on windows, so targeting net461 is probably not going to work anyway
danwalmsley
@danwalmsley
Feb 18 2018 13:32
but if the previewer no longer requires it
its not needed
@grokys fixed
Steven Kirk
@grokys
Feb 18 2018 13:34
@danwalmsley the app-mvvm template still has the old package versions
danwalmsley
@danwalmsley
Feb 18 2018 13:36
how did I miss that!
fixed
@wieslawsoltes thanks
@grokys
@danwalmsley It should work with netcoreapp2.0
Steven Kirk
@grokys
Feb 18 2018 13:38
@kekekeks looks good :+1:
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:38
@grokys I think we could change our vsix templates to use netcoreapp2.0 by default
multitargeting unnecessary complicates things
Steven Kirk
@grokys
Feb 18 2018 13:39
yeah i was thinking about that. only problem is that netcoreapp shows that console window
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:40
We could automatically patch executable file subsystem on publish
via msbuild task
Well, let's leave that for the next version
Steven Kirk
@grokys
Feb 18 2018 13:40
yeah
too late to do that at this point i think
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:40
Such patcher should live in a separate nuget package anyway
Steven Kirk
@grokys
Feb 18 2018 13:41
if you want to change the targeting, go ahead, i don't mind
Our site generator uses different metadata format
Steven Kirk
@grokys
Feb 18 2018 13:43
ah ok
i need to look into the site
i've been working on a table of contents for docs
to give an outline of what docs we should have
i'll take a look at the site and submit a PR i guess
i really want to get the site looking nice and having some decent docs before the next release
danwalmsley
@danwalmsley
Feb 18 2018 13:46
templates working
image.png
Steven Kirk
@grokys
Feb 18 2018 13:47
cool!
@grokys " Anticipating this, we've now got a site up at http://avaloniaui.net/ with s"
Steven Kirk
@grokys
Feb 18 2018 13:55
oh. i think we can remove that sentence anyway now as the blog post is there
Nikita Tsukanov
@kekekeks
Feb 18 2018 13:56
Aaargh, completely forgot about the breaking changes
Steven Kirk
@grokys
Feb 18 2018 13:57
oh yeah
me too
@kekekeks when do wyam build -p to build avaloniaui.net locally i just get an empty site
image.png
what am i missing?
Nikita Tsukanov
@kekekeks
Feb 18 2018 14:01
Use build.cmd
Also place wyam data to wyam directory
I'm not sure if they've changed something recently
For previewing use serve.cmd
If you only want to see blog posts or tutorials, use fast-buld-without-api.cmd, it's much faster this way since it skips code analysis
Mkay, I've updated the blog post with the breaking changes
danwalmsley
@danwalmsley
Feb 18 2018 14:07
There is a minor typo where you mention Avalon Studio
It says Avalon Studio an IDE Avalonia
Should it have for in there?
Nikita Tsukanov
@kekekeks
Feb 18 2018 14:09
изображение.png
Feels free to make changes)
Steven Kirk
@grokys
Feb 18 2018 14:09
yeah i will :)
why did do we have to use a special build of wyam?
Nikita Tsukanov
@kekekeks
Feb 18 2018 14:10
It's not "special"
I just don't remember which version it is
Steven Kirk
@grokys
Feb 18 2018 14:10
ah, haha ok
but thanks, yeah that's working now
it also seems to work with version of wyam i installed via chocolately
Nikita Tsukanov
@kekekeks
Feb 18 2018 14:13
I guess we should make the reddit post tomorrow
Something is wrong with favicon.ico
Steven Kirk
@grokys
Feb 18 2018 14:20
yeah tomorrow would be fine with me
Nikita Tsukanov
@kekekeks
Feb 18 2018 14:36
We should probably add "Getting started" link to the blog post
Eli Arbel
@aelij
Feb 18 2018 15:45
Congrat's on the new version, everyone! :)
BTW, have you considered reserving the Avalonia prefix on NuGet?
Steven Kirk
@grokys
Feb 18 2018 15:51
oh yeah we should do that
thanks btw @aelij !
i'll send a message requesting the reservation now
Steven Kirk
@grokys
Feb 18 2018 15:58
ooh look - we now have backers on opencollective! https://opencollective.com/avalonia
@kekekeks are you paying for hosting of avaloniaui.net?
Nikita Tsukanov
@kekekeks
Feb 18 2018 16:04
It's hosted on my server
Which is also used for my commercial project
So it's basically free
Mkay, I've added og:image and image_url metadata
So, hopefully, we won't get "thumbnail is terrible" comments again :smile:
Steven Kirk
@grokys
Feb 18 2018 16:07
@kekekeks AvaloniaUI/avaloniaui.net#3 a small PR ;)
Steven Kirk
@grokys
Feb 18 2018 16:20
and another @kekekeks AvaloniaUI/avaloniaui.net#4
not worked out how to order the sections yet!
let me know if you're working on this stuff and if i'm causing conflicts
the docs for wyam aren't much better than our docs...
Nikita Tsukanov
@kekekeks
Feb 18 2018 16:28
See _NavBar.cshtml
I have some hacks there to enforce our current ordering
Steven Kirk
@grokys
Feb 18 2018 16:29
yeah i saw that, but there must be a better way to do it
Nikita Tsukanov
@kekekeks
Feb 18 2018 16:39
@grokys there is an error in your relativesource example
You are supposed to bind to Tag, not to Text
Steven Kirk
@grokys
Feb 18 2018 16:41
ah, yeah you're right, do you want me to submit a PR or will you fix it?
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 16:43
Hey can we put our OpenCollective link on our Readme? We might get more donations that way.
Nikita Tsukanov
@kekekeks
Feb 18 2018 16:44
For referring to particular controls
Steven Kirk
@grokys
Feb 18 2018 16:47
yeah good point about the opencollective. we also need to work out what to do with contributions!
Nikita Tsukanov
@kekekeks
Feb 18 2018 17:18
Got this exception while clicking on our calendar control
in control catalog
Steven Kirk
@grokys
Feb 18 2018 17:19
@jkoritzinsky that looks like perhaps another race condition with the RefCount stuff? :point_up:
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 17:21
Maybe. I thought I got all of those. I'll check again. I don't think it's a race condition this time.
Nikita Tsukanov
@kekekeks
Feb 18 2018 17:25
It seems to be somehow related to GC
It always happens after finalizing undisposed bitmap
I can crash it quite consistently
At least on Skia backend
Nikita Tsukanov
@kekekeks
Feb 18 2018 17:58
I guess we should postpone the release announcement until it's fixed
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 18:18
@kekekeks I'm struggling to repro this crash on my system.
Nikita Tsukanov
@kekekeks
Feb 18 2018 18:19
Try with Skia backend
I'm running ControlCatalog.NetCore on Ubuntu 16.04
I'll try to reproduce on my windows machine
Nikita Tsukanov
@kekekeks
Feb 18 2018 18:24
Got another exception
изображение.png
@jkoritzinsky
It's not fatal though
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 18:25
I'm able to replicate this one. I'm working on fixing it.
Nikita Tsukanov
@kekekeks
Feb 18 2018 18:25
But I guess it's somehow related
Reproduced reference issue on windows
ControlCatalog.NetCore + Skia backend
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 18:40
I've found the issue. Visual node ownership is shared between the Scene index and Visual Nodes. I have to re-design how I handle visual node disposal. Or wrap all VisualNode objects with IRef, which I'd rather not do if I don't have to.
Nikita Tsukanov
@kekekeks
Feb 18 2018 18:51
I guess the initial idea with 1x1 pixel image substitution was way easier to implement
It also might be more efficient
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 18:52
I just changed it to make the Scene object own the VisualNode objects (and handle the disposal), and VisualNodes have non-owning references to their children.
@kekekeks Can you try out AvaloniaUI/Avalonia#1379 and let me know if it fixes both exceptions?
Nikita Tsukanov
@kekekeks
Feb 18 2018 18:59
Doesn't seem to crash anymore
Hit testing gets broken after a while
But I'm not sure if that's related
Unhandled Exception: System.InvalidOperationException: Control is not attached to visual tree.
   at Avalonia.VisualExtensions.GetRootAndPosition(IVisual v) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Visuals/VisualExtensions.cs:line 83
   at Avalonia.VisualExtensions.PointToClient(IVisual visual, Point point) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Visuals/VisualExtensions.cs:line 32
   at Avalonia.Input.MouseDevice.GetPosition(IVisual relativeTo) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Input/MouseDevice.cs:line 99
   at Avalonia.Input.PointerEventArgs.GetPosition(IVisual relativeTo) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Input/PointerEventArgs.cs:line 29
   at Avalonia.Controls.Button.OnPointerReleased(PointerReleasedEventArgs e) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Controls/Button.cs:line 254
   at Avalonia.Controls.Primitives.CalendarDayButton.OnPointerReleased(PointerReleasedEventArgs e) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Controls/Calendar/CalendarDayButton.cs:line 234
   at Avalonia.Interactivity.RoutedEvent`1.<>c__DisplayClass1_0`1.<AddClassHandler>b__0(Object sender, RoutedEventArgs e) in /home/kekekeks/Projects/Avalonia/src/Avalonia.Interactivity/RoutedEvent.cs:line 151
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Managed to crash it
But it seems to be another issue
@grokys
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 19:02
Yeah that doesn't look like its related to the scenebuilder
Nikita Tsukanov
@kekekeks
Feb 18 2018 19:06
On win32 it seems to be pretty stable now
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 19:07
I'll merge in #1379.
Nikita Tsukanov
@kekekeks
Feb 18 2018 19:10
+
I guess we are releasing a hotfix already
Steven Kirk
@grokys
Feb 18 2018 19:32
@kekekeks any idea how you got the Control is not attached to visual tree. error?
Nikita Tsukanov
@kekekeks
Feb 18 2018 19:38
I was clicking on calendars like a madman
Until I've reached a point when I could no longer click on the date
Then I've switched the page to Buttons
I guess it's somehow related to the mouse grab
We don't implement this for GTK/MonoMac
That might be the reason why I can't reproduce the issue on windows
Steven Kirk
@grokys
Feb 18 2018 19:41
ah... ok yeah that might be it
is there an equivalent concept on GTK or Mac?
Nikita Tsukanov
@kekekeks
Feb 18 2018 19:45
Not anymore
They've removed some parts of mouse capturing from GTK
because of that new-fancy-better-faster-stronger display server
Which doesn't have a proper mouse capture support
We still shouldn't crash, I think
ahopper
@ahopper
Feb 18 2018 19:59
Hi team, congratulations on the release, it all works with my project, great motivation to put some more effort into the Avalonia version.
Steven Kirk
@grokys
Feb 18 2018 20:08
thanks @ahopper !
Nikita Tsukanov
@kekekeks
Feb 18 2018 20:12
@grokys are we releasing a hotfix?
Steven Kirk
@grokys
Feb 18 2018 20:29
yeah we probably should. there's also AvaloniaUI/Avalonia#1376
Jeremy Koritzinsky
@jkoritzinsky
Feb 18 2018 23:08
@kekekeks @grokys Did we post a release announcement on Reddit/Hacker News yet?