These are chat archives for AvaloniaUI/Avalonia

25th
Oct 2017
danwalmsley
@danwalmsley
Oct 25 2017 08:45
@kekekeks @jkoritzinsky @grokys any recent changes that would have broken setting selected item on listbox?
trying to go back on nugget to see when this go broken
Steven Kirk
@grokys
Oct 25 2017 08:49
i fixed a bug with selected item binding here AvaloniaUI/Avalonia#1238 - i guess it could have broken something else?
danwalmsley
@danwalmsley
Oct 25 2017 08:50
ok will test before and after this commit
thanks
oh also
has there been some change related to system.drawing too?
This message was deleted
danwalmsley
@danwalmsley
Oct 25 2017 09:06
@grokys yeah that is the breaking change
so I'm binding to selected item, and it fails to select now
Steven Kirk
@grokys
Oct 25 2017 09:06
oh crap :(
danwalmsley
@danwalmsley
Oct 25 2017 09:07
just going to study the changes a bit
maybe i'll try a simple repro in control catalog
unless you think there is something obvious?
Steven Kirk
@grokys
Oct 25 2017 09:09
just taking a quick look
basic selection in BindingTest seems to work ok
so if it's obvious it's not that obvious ;)
Henri Asseily
@hasseily
Oct 25 2017 09:22
hello, using VS on os x 10.13. Seems AvaloniaVS.vsix isn't getting recognized by the extension loader
Nikita Tsukanov
@kekekeks
Oct 25 2017 09:52

has there been some change related to system.drawing too?

I've removed the dependency on splat

you can add it back to your project
@hasseily we don't support monodevelop and derivatives
Henri Asseily
@hasseily
Oct 25 2017 09:54
ok thanks that makes it clearer then :)
So I should just work on win and cross-compile?
The problem with cross-compiling on win is that it's really inconvenient to copy binaries
Since you need to chmod the executable every time
You also need to use app template with multitargeting
Since our XAML previewer in VS extension can't properly work with .NET Core
so the idea is to compile for netcoreapp2.0 and net461, so net461 build will be used by previewer and netcoreapp2.0 can be used for actually running the app on multiple platforms
That limitation will be removed quite soon
Henri Asseily
@hasseily
Oct 25 2017 12:14
ok thanks i just need to compile pre-existing sources one time, so I'll try what you suggest with netcoreapp2.0
Nikita Tsukanov
@kekekeks
Oct 25 2017 12:44
We are planning to create a plugin for Rider once they'll release a proper SDK.
VS4Mac plugin is also planned, but the problem is that it doesn't really support solutions with multitargeting and it would work only on OSX since MonoDevelop doesn't support .NET Core on Linux, so the priority for that one is quite low
danwalmsley
@danwalmsley
Oct 25 2017 14:03
@grokys the binding test app, and tried a simple repro its definitely not a simple thing
going to step through see if I can see what happens
danwalmsley
@danwalmsley
Oct 25 2017 14:11
@grokys
selectingitemscontrol
</summary>
        public object SelectedItem
        {
            get
            {
                return _selectedItem;
            }

            set
            {
                if (_updateCount == 0)
                {
_updateCount is never 0 in my case
so it never gets set
danwalmsley
@danwalmsley
Oct 25 2017 14:21
in this particular case:
/// <inheritdoc/>
        protected override void OnDataContextBeginUpdate()
        {
            base.OnDataContextBeginUpdate();
            ++_updateCount;
        }

        /// <inheritdoc/>
        protected override void OnDataContextEndUpdate()
        {
            base.OnDataContextEndUpdate();

            if (--_updateCount == 0)
            {
                UpdateFinished();
            }
        }
OnDataContextEndUpdate (selectingItemsControl.cs) never gets called
looks like its something to do with it being in a popup
will try a repro involving popup
danwalmsley
@danwalmsley
Oct 25 2017 14:32
ok very simple repro here:
will add an issue
danwalmsley
@danwalmsley
Oct 25 2017 14:42
ok @grokys detailed bug report here: AvaloniaUI/Avalonia#1245
Nikita Tsukanov
@kekekeks
Oct 25 2017 14:44
@danwalmsley have you tried using OBS for screen recording?
danwalmsley
@danwalmsley
Oct 25 2017 14:48
no but I will now
thanks
danwalmsley
@danwalmsley
Oct 25 2017 14:56
Steven Kirk
@grokys
Oct 25 2017 15:06
thanks dan! that's a fantastic bug report! :)
danwalmsley
@danwalmsley
Oct 25 2017 15:11
:)
James Walmsley
@jameswalmsley
Oct 25 2017 16:15
This message was deleted
danwalmsley
@danwalmsley
Oct 25 2017 16:16
guys
I found a machine that visual studio works quite well on
image.png
16 cores, 48gb ram
Steven Kirk
@grokys
Oct 25 2017 16:55
wow i want that machine!
what is it?
danwalmsley
@danwalmsley
Oct 25 2017 16:59
Its my brothers server, he's set it up in my garage whilst he's moving house
So i put and old ssd in it with win 10,
Can actually get shit done
It was being thrown out at an office he was working in, so he said yeah il have it
Steven Kirk
@grokys
Oct 25 2017 17:12
haha wow! garage office
System.AccessViolationException: Attempted to read or write protected memory. This is often an 
indication that other memory is corrupt.
   at SharpDX.DirectWrite.TextLayout.HitTestPoint(Single pointX, Single pointY, RawBool& isTrailingHit, RawBool& isInside)
   at Avalonia.Direct2D1.Media.FormattedTextImpl.HitTestPoint(Point point)
   at Avalonia.Direct2D1.RenderTests.Media.FormattedTextImplTests.Should_HitTestPoint_Correctly(String input, Double x, Double y, Boolean isInside, Boolean isTrailing, Int32 pos) in
Steven Kirk
@grokys
Oct 25 2017 18:49
oh, never seen that before
restarted a new build - lets see if it goes away
oh, i can't because the PR is closed
Nikita Tsukanov
@kekekeks
Oct 25 2017 19:04
It occurs randomly from time to time
I think it was in September when I've seen it last time
Jeremy Koritzinsky
@jkoritzinsky
Oct 25 2017 19:46
We might need an AddRef call and an extra Dispose. I'm not sure though.
rconde01
@rconde01
Oct 25 2017 21:09
what are your thoughts, if any, on https://www.noesisengine.com/
Nikita Tsukanov
@kekekeks
Oct 25 2017 21:11
It's a game UI engine
also closed source
rconde01
@rconde01
Oct 25 2017 21:12
well, it's marketed towards games, but the control library is pretty complete
just curious...
Steven Kirk
@grokys
Oct 25 2017 21:37
i've heard a few people talk about it, but don't know anyone who's used it so far
i think their use-case is pretty different from ours
Steven Kirk
@grokys
Oct 25 2017 23:02
@danwalmsley #1246 will hopefully fix your problem!