These are chat archives for AvaloniaUI/Avalonia

2nd
Dec 2015
Egor Bogatov
@EgorBo
Dec 02 2015 08:36
Niice!
danwalmsley
@danwalmsley
Dec 02 2015 09:06
nice video!!
Steven Kirk
@grokys
Dec 02 2015 09:21
cool! i'll put that into the post
danwalmsley
@danwalmsley
Dec 02 2015 09:21
whens alpha 3 today?
Steven Kirk
@grokys
Dec 02 2015 09:21
yep, hopefully!
i think everything's ready
danwalmsley
@danwalmsley
Dec 02 2015 09:22
awesome!! probably we will get a spike of interest again :)
Steven Kirk
@grokys
Dec 02 2015 09:22
uh oh, brace yourselves ;)
Nikita Tsukanov
@kekekeks
Dec 02 2015 09:23

cool! i'll put that into the post

that's preview

danwalmsley
@danwalmsley
Dec 02 2015 09:23
il tweet it after!!!
Nikita Tsukanov
@kekekeks
Dec 02 2015 09:23
Final video will have some changes
I also have to update nuget packages in VS extension, make sure that app template works, etc
So I think that we'll upload and test binaries this evening and post should follow that tomorroy morning
Steven Kirk
@grokys
Dec 02 2015 09:27
ok, sounds good to me - that might give me chance to fix @danwalmsley 's DataContext problem too if the change isn't too invasive
Nikita Tsukanov
@kekekeks
Dec 02 2015 09:28
Planned changes for the video:
  • "Text from Model" should be on the screen for a bit more
  • "live preview" is too long, possibly need to cut its screen time in favor of android demo (need to edit that demo through, since switching to "lists" tab takes 3 seconds)
Anything else?
Oh
  • Replace "Alpha3" with "With iOS and Android support!"
Egor Bogatov
@EgorBo
Dec 02 2015 09:29
I wonder how you handle user input in Android? is it a fake native EditText?
Nikita Tsukanov
@kekekeks
Dec 02 2015 09:30
Nope
Egor Bogatov
@EgorBo
Dec 02 2015 09:30
wow, something hand-made? :)
Ask @donandren
He even shows software keyboard if focused element is TextBox
iOS port doesn't have such functionality for now
danwalmsley
@danwalmsley
Dec 02 2015 10:28
guys I tried to run my project on ubuntu (removed the bindings to get it to run for now)
but there are lots of exceptions!!!
dont event get window up
Nikita Tsukanov
@kekekeks
Dec 02 2015 10:28
Remove GTK-related dlls
from your distribution folder
rm *gtk* *sharp*
Should do the trick
For some reason VS copies them to output directory while it shouldn't
danwalmsley
@danwalmsley
Dec 02 2015 10:31
hmm not sure I can see any files matching that
blob
bitbonk
@bitbonk
Dec 02 2015 10:35
will it be possible to run Perspex on top of dnx ?
dnx does have P/Invoke
or corefx for that matter
or coreclr (?)
Nikita Tsukanov
@kekekeks
Dec 02 2015 10:44
We'll need windowing backend for that
GTK# isn't compatible with coreclr
bitbonk
@bitbonk
Dec 02 2015 10:46
A windowing backend? Can't I open windows using P/Invoke ?
Nikita Tsukanov
@kekekeks
Dec 02 2015 10:46
Good luck with that on Linux/OSX
Especially with input method handling
And with ObjC interopability
UI toolkits like GTK are there for a reason
danwalmsley
@danwalmsley
Dec 02 2015 10:51
@kekekeks do you know if my exception due to gtk files or is it something else?
Nikita Tsukanov
@kekekeks
Dec 02 2015 10:51
OmniXAML was unable to load something
danwalmsley
@danwalmsley
Dec 02 2015 13:05
@kekekeks its wierd though when I run it on Windows... it works...
perhaps I need to do some kind of platform initialization?
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:10
Nope, should work out of the box
Provide me with the list of files in output directory
ls -la
@grokys Mono build is broken
CSC: error CS1904: 'CS1591' is not a valid warning number
danwalmsley
@danwalmsley
Dec 02 2015 13:13
@kekekeks
blob
couldnt get it all in one
blob
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:14
Dude, have you ever heard about that awesome "Copy&Paste" feature that modern PCs have?
You definetely should try it
danwalmsley
@danwalmsley
Dec 02 2015 13:15
haha
its because im in a vm
hyper-v and its not working
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:15
Assembly list looks fine to me
Check for Mono version
danwalmsley
@danwalmsley
Dec 02 2015 13:17
mono --version give
mono jit compiler version 3.2.8
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:17
Update it to 4.2
danwalmsley
@danwalmsley
Dec 02 2015 13:18
ok
i did sudo apt-get install mono-complete... i though that would have given latest?
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:18
Latest in ubuntu repos
danwalmsley
@danwalmsley
Dec 02 2015 13:19
ah ok
il have to add mono repo then
danwalmsley
@danwalmsley
Dec 02 2015 13:24
@kekekeks thanks mate just sorting that out
danwalmsley
@danwalmsley
Dec 02 2015 13:35
ah man "unable to install mono-develop" "you have held broken packages"
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:35
Well, that's because you have held broken packages
danwalmsley
@danwalmsley
Dec 02 2015 13:36
mate im not a linux expert!!! i have no idea what that means!!!
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:36
$ dpkg --get-selections|grep hold
also try apt-get dist-upgrade
danwalmsley
@danwalmsley
Dec 02 2015 13:37
nothing happend
Nikita Tsukanov
@kekekeks
Dec 02 2015 13:38
Or apt-get full-upgrade
danwalmsley
@danwalmsley
Dec 02 2015 13:38
just doing dist-upgrade
prob take a while!
Steven Kirk
@grokys
Dec 02 2015 14:03
'CS1591' is not a valid warning number - that used to only be a problem for the tests on mono
is it now affecting the main projects too?
@bitbonk we plan to add coreclr support
the cairo backend probably won't work but you have other choices
i.e. Direct2D on windows or skia everywhere
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:06

is it now affecting the main projects too?

You've added thatto main projects awhile ago

Wait, it was another warning
danwalmsley
@danwalmsley
Dec 02 2015 14:08
cd ..
oops
@kekekeks thanks
new version of mono
its all working fine
Steven Kirk
@grokys
Dec 02 2015 14:11
ah good, so we're all good on mono then?
danwalmsley
@danwalmsley
Dec 02 2015 14:11
at least for my project it works
Steven Kirk
@grokys
Dec 02 2015 14:14
good enough for me ;)
danwalmsley
@danwalmsley
Dec 02 2015 14:15
only thing im waiting on is the binding issue ;)
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:15
Ehm, may I upload nuget packages?
are we still waiting for something?
Steven Kirk
@grokys
Dec 02 2015 14:17
i've not had chance to look at dan's DataContext binding issue
i might get a bit of time in an hour or so
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:18
Well, ok
Steven Kirk
@grokys
Dec 02 2015 14:18
but if we want to do alpha 3 without that i don't mind
i don't think @wieslawsoltes has run into the problem so it can't be that serious
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:19
I haven't uploaded anything yet, just updating VS extension with new version
Ping me when I'm clear to start uploading
Aaaand "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
just great
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:24
Oh
crap
I need to include entire SharpDX nuget
to vsix
Steven Kirk
@grokys
Dec 02 2015 14:25
how come?
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:25
You can't intall online packages to your app template
only ones that you ship with vsix
And SharpDX is 400MB
ahahah
Well, it's not that bad, actual nupkg is "only" 50MB
Steven Kirk
@grokys
Dec 02 2015 14:35
i didn't know the VS extension used sharpdx - i thought it called into the .exe itself for the rendering etc
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:35
It's not VS extension
It's Direct2D backend
That needs to be installed in project created from template
And I need to ship all nuget deps with extension
Steven Kirk
@grokys
Dec 02 2015 14:36
ahhhh, i understand
that sucks that you can't reference external nugets in an extension
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:37
It's probably possible using PowerShell-script or something
But that's better approach anyways
People might want to create a project while being offline
BTW, we need some shared MS Live account
For uploading stuff to VS gallery
Steven Kirk
@grokys
Dec 02 2015 14:41
ah yeah, i forgot you can't add owners
the VS gallery really sucks
tumbleweed
maybe we should just host it ourselves
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:43
We won't get autoupdate then
Steven Kirk
@grokys
Dec 02 2015 14:43
true... sigh
you know to add a new version on the VS gallery you have to fill out all the information again?
Steven Kirk
@grokys
Dec 02 2015 14:47
i've sent a tweet to VS asking if we can associate more than once user
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:47
Guys, please, check that everything works
Steven Kirk
@grokys
Dec 02 2015 14:48
downloading...
danwalmsley
@danwalmsley
Dec 02 2015 14:49
Guys, please, check that everything works
In the plugin?
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:49
yep
That you can create a project from template, designer works, intellisense works, that sort of stuff
Just try to create a simple app with view model
Steven Kirk
@grokys
Dec 02 2015 14:50
update works now - doesn't complain that it's already installed
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:50
I've bumped the version to 0.2.0.0
Steven Kirk
@grokys
Dec 02 2015 14:50
yeah, i assumed that was the problem
danwalmsley
@danwalmsley
Dec 02 2015 14:51
when I searched for plugin it said version 0.1.0.0?
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:52
You need to install it from vsix
danwalmsley
@danwalmsley
Dec 02 2015 14:52
ah ok
cheers
Steven Kirk
@grokys
Dec 02 2015 14:52
App.cs should be created with an App.xaml like windows are
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:53
please, provide me with a template for App.paml
<Application x:Class="XamlTestApplicationPcl.XamlTestApp"
        xmlns="https://github.com/perspex"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
</Application>
Something like that?
danwalmsley
@danwalmsley
Dec 02 2015 14:54
its much larger file size than before... must be loads of new features then?
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:54
It has a load of SharpDX
danwalmsley
@danwalmsley
Dec 02 2015 14:54
ok
Steven Kirk
@grokys
Dec 02 2015 14:54
ah i thought that BindingTest had one but it doesn't
check out the controlcatalog branch, in samples/ControlCatalog
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:56
controlcatalog?
Steven Kirk
@grokys
Dec 02 2015 14:56
yeah
i also moved the Main method inside App.cs there
the GetPlatformId method should be removed though
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:57
Is it a new showcase app?
Steven Kirk
@grokys
Dec 02 2015 14:57
yeah, that's the plan
danwalmsley
@danwalmsley
Dec 02 2015 14:57
@grokys in the wiki it says RC1 planned April 2016... do you think thats still on target?
Steven Kirk
@grokys
Dec 02 2015 14:57
haha those dates were plucked out of thin air by @kekekeks
i had no say in them!
danwalmsley
@danwalmsley
Dec 02 2015 14:58
haha! ok if you manage it! will be great
Steven Kirk
@grokys
Dec 02 2015 14:58
i doubt it ;)
danwalmsley
@danwalmsley
Dec 02 2015 14:58
at least beta 1 and 2 have some pretty important feature for me!!!
Nikita Tsukanov
@kekekeks
Dec 02 2015 14:58
These dates were a wish of my left heel
Steven Kirk
@grokys
Dec 02 2015 14:59
i think short of someone paying both me and kekekeks to work full time on perspex, it's pretty unlikely they're in any way accurate ;)
we should probably remove them
i think we're going to need at least another alpha anyway
danwalmsley
@danwalmsley
Dec 02 2015 15:00
haha well over Xmas I will be able to help out loads
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:00
Well, stuff is getting stable
next release can probably be called beta
Steven Kirk
@grokys
Dec 02 2015 15:00
yeah, it's getting there
but i don't think we're anywhere near what i'd call a beta...
there's still a lot of problems
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:01
Well, look at ASP.NET vnext
and their first beta
Steven Kirk
@grokys
Dec 02 2015 15:01
yeah, betas mean different things to different people ;)
danwalmsley
@danwalmsley
Dec 02 2015 15:01
wow I am so impressed with new designer!
how did you get intellisense working Roslyn?
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:02
well, for me beta means "Can be used in production if you are brave enough"
danwalmsley
@danwalmsley
Dec 02 2015 15:02
thats alpha for me!!!
haha
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:02

how did you get intellisense working Roslyn

Nope, same half-assed xml parser

danwalmsley
@danwalmsley
Dec 02 2015 15:03
impressive mate
works really nicely.
so far
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:04
I'll probably be able to get some binding intellisense support
For datatemplates with DataType specified
And for stuff with Design.DataContext={Static ...}
Since types can be detected without running any perspex code
danwalmsley
@danwalmsley
Dec 02 2015 15:05
im sure im going to be able to make loads of progress now...
once my datacontext thing is sorted!!! :)
"Styling (set Dark/Light theme etc for sections of app) (requires style variables)"
is that in this release?
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:07
I have no idea what it is
danwalmsley
@danwalmsley
Dec 02 2015 15:07
just from the list of things in Alpha 3
but everything else has (Done) next to it
on wiki
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:07
yep
I can't mark that as done
danwalmsley
@danwalmsley
Dec 02 2015 15:08
sweet
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:08
Today on Perspex Channel: XCode: Feature Unknown
danwalmsley
@danwalmsley
Dec 02 2015 15:09
im going to have a play with that then...
Steven Kirk
@grokys
Dec 02 2015 15:14
haha, that is a feature that will work like CSS properties
danwalmsley
@danwalmsley
Dec 02 2015 15:15
so we can change styles on the fly?
Steven Kirk
@grokys
Dec 02 2015 15:15
that will allow you to e.g. style a part of the window with a dark theme while the rest is light
and yeah, might allow that too
danwalmsley
@danwalmsley
Dec 02 2015 15:15
im looking around for an example of applying a style to something
danwalmsley
@danwalmsley
Dec 02 2015 15:16
oops! bug in test app... not that important...
blob
Steven Kirk
@grokys
Dec 02 2015 15:17
ok, is it reproducible?
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:17
Yep
danwalmsley
@danwalmsley
Dec 02 2015 15:17
run the xaml test app
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:17
You need to hit that menu item
danwalmsley
@danwalmsley
Dec 02 2015 15:17
then click on the menu
click goodbye
get the crash
Steven Kirk
@grokys
Dec 02 2015 15:18
oh... that's kinda serious
Steven Kirk
@grokys
Dec 02 2015 15:34
ok, fixed that
@kekekeks some ideas for perspex designer ;) https://www.youtube.com/watch?v=dJR-n8szgBc
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:38
Yep, we'll need "mobile simulation" mode
That's already planned
I need to get tinywm stuff up and running first
Animation editor is awesome
Steven Kirk
@grokys
Dec 02 2015 15:40
yeah, when i saw that i was :O
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:41
Most of that stuff should be in inspector however
Or we somehow need to integrate inspector with designer
Which is also a doable task
danwalmsley
@danwalmsley
Dec 02 2015 15:42
will the designer be written on perspex so it could be integrated with other platforms ide?
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:43
Nope
I'm planning to add support for Xamarin Studio through
Steven Kirk
@grokys
Dec 02 2015 15:48
yeah, i was thinking about that - would be awesome to have a combined designer/inspector
@danwalmsley - i'm not completely sure but i think the problem you're seeing actually is an omnixaml bug ;)
the problem is coming from the MainMenu binding
when that is set, the MainMenu isn't added to the tree, but it should be
that's all going to change soon though hopefully so might be best to just work around it somehow for now
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:50
The issue with applying changes back to XAML is that we don't have XAML AST
Steven Kirk
@grokys
Dec 02 2015 15:50
yeah, well that's pretty "future" stuff, we have more basic stuff to worry about for now ;)
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:51
DevTools tab is pretty doable right now through
And we still need to somehow make inspector to work over TCP
Steven Kirk
@grokys
Dec 02 2015 15:52
a xaml ast would be awesome, but you know i'm not sure that the standard XAML parser should use one
i can kinda see why MS have two XAML parsers
one for reading and one for the designer
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:52
With XAML AST we won't need two parsers
AST can be compiled to msil
Steven Kirk
@grokys
Dec 02 2015 15:53
well that's another thing entirely!
(would be a very good thing!)
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:54
The main problem is that it will probably take ~200 hours to implement
And we a kinda low on budget on that front
Steven Kirk
@grokys
Dec 02 2015 15:55
yep :)
danwalmsley
@danwalmsley
Dec 02 2015 15:55
XDocument can create Xaml ast??
but seperately from omnixaml
or maybe its not a syntax tree
just a xml tree
Nikita Tsukanov
@kekekeks
Dec 02 2015 15:56
It doesn't tolerate errors
So it's pretty much useless for IDE services
danwalmsley
@danwalmsley
Dec 02 2015 16:00
@grokys ... should I set datacontext from code behind perhaps?
Steven Kirk
@grokys
Dec 02 2015 16:01
yeah, try it
danwalmsley
@danwalmsley
Dec 02 2015 16:02
whats the upto data way to get hold of a control from a view in code behind..
?
        private void InitializeComponent()
        {
            PerspexXamlLoader.Load(this);

            var namescope = this.FindNameScope();

            var mainMenu = namescope.Find<Controls.MainMenu>("mainMenu");

            mainMenu.DataContext = Workspace.This.MainMenu;
        }
@kekekeks I found an issue with the plugin
if you have any tab open with a Designer open
even when its in background
then press f5... debug wont launch
Nikita Tsukanov
@kekekeks
Dec 02 2015 16:05
Crap
I thought that it was fixed
It doesn't get killed properly for some reason then
danwalmsley
@danwalmsley
Dec 02 2015 16:06
ah
@grokys my control finding code returns null :(
Try this version
Steven Kirk
@grokys
Dec 02 2015 16:08
you can just use this.FindControl from in InitializeComponent
danwalmsley
@danwalmsley
Dec 02 2015 16:11
            var mainMenu = this.FindControl<MainMenu>("mainMenu");
returns null
<Grid Grid.ColumnSpan="3">
      <Controls:MainMenu Name="mainMenu" />
    </Grid>
Steven Kirk
@grokys
Dec 02 2015 16:17
oh :(
Nikita Tsukanov
@kekekeks
Dec 02 2015 16:17
@danwalmsley is F5 issue fixed?
danwalmsley
@danwalmsley
Dec 02 2015 16:18
@kekekeks doesnt seem like it....
if the designer is on the screen
it worked at first
then after changing tab to a non-designer tab
it no longer debugs
then closing all tabs works again
ok heading home... see you guys later on
Steven Kirk
@grokys
Dec 02 2015 16:20
ok, later, i'll try to find the problem with the named control - thanks!
danwalmsley
@danwalmsley
Dec 02 2015 16:20
@grokys cheers mate... im hoping that it turns out to be related to the datacontext problem!!!
then I get 2 for 1!
Steven Kirk
@grokys
Dec 02 2015 16:24
@kekekeks happening for me too - not running when designer is up
Nikita Tsukanov
@kekekeks
Dec 02 2015 16:25
It doesn't happen with debugger attached to VS
wtf
Heisenbug
Try this one
Nikita Tsukanov
@kekekeks
Dec 02 2015 16:30
It also uses a lot of CPU time with designer enabled
Steven Kirk
@grokys
Dec 02 2015 16:31
yeah i noticed that
nope problem is still there - works the first time, doesn't run after that
tbh i think we need to delay the release: i think these problems that dan's seeing need fixing
(quite apart from the designer problem)
Steven Kirk
@grokys
Dec 02 2015 16:41
yep, Name with UserControl is busted :(
and i think it needs to be fixed in omnixaml
anyone here a xaml expert?
seems that the Name property is different to others in its scope
usually if you have a UserControl called Foo then the following are equivalent right?
<UserControl Background="Red" x:Class="Foo"/>
<Foo Background="Red"/>
they both set Background on Foo
but with Name the following are different:
Steven Kirk
@grokys
Dec 02 2015 16:46
<UserControl Name="foo" x:Class="Foo"/>
<Foo Name="foo"/>
the first registers the Name in the UserControl scope, the second in the surrounding scope
Nikita Tsukanov
@kekekeks
Dec 02 2015 16:47
Why would you set name in the root tag?
Steven Kirk
@grokys
Dec 02 2015 16:47
well, you wouldn't
but the fact is, it has a different effect
whereas with any other property they are equivalent
actually, do you do something similar in templates
where the root of the template can register its name with itself
Nikita Tsukanov
@kekekeks
Dec 02 2015 16:50
argh
There is no way to know that build will be followed-up with debugging
I guess i need to wait for a second before restarting designer
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:16
This message was deleted
I've added 1 sec timeout
before attempting to restart designer process
After BuildEnd event
Steven Kirk
@grokys
Dec 02 2015 17:23
SuperJMN/OmniXAML#64
i'm not sure we want to release alpha 3 before that is fixed
what do you all think?
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:24
That can take ages to fix and we can always release hotfixes
Last time we did
Steven Kirk
@grokys
Dec 02 2015 17:24
ok, i'll try and work out what the other UserControl bug is though
because if we have both bugs then UserControl is essentially unusable
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:25
What's the other one?
Steven Kirk
@grokys
Dec 02 2015 17:25
that binding to a UserControl's DataContent doesn't seem to work
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:26
yep, that's the major issue
Steven Kirk
@grokys
Dec 02 2015 17:26
that one is proving harder to understand...
but i suspect it's another OmniXAML bug
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:27
How does Core2D work then?
user controls are heavily used there
Steven Kirk
@grokys
Dec 02 2015 17:28
not sure...
i'm still investigating
nope, even with latest vsix i'm still seeing the problem
are you not seeing it?
with the avalonstudio project
Apply & Restart Visual Studio
It will write messages to console window
Please, send me what's being printed there after you press F5
Steven Kirk
@grokys
Dec 02 2015 17:41
ok will do
but you're not seeing the same?
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:41
designer process gets killed
Steven Kirk
@grokys
Dec 02 2015 17:42
now also getting:

Microsoft Visual Studio

An exception has been encountered. This may be caused by an extension.

You can get more information by examining the file 'C:\Users\stevenk\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.

OK

Nikita Tsukanov
@kekekeks
Dec 02 2015 17:42
Mkay, what's inside ActivityLog?
also now i don't get xaml designer
:(
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:47
            if(Registry.GetValue(@"HKEY_CURRENT_USER\Software\PerspexUI\Designer", "AllocConsole", 0).Equals(1))
                CreateConsole();
            var dte = (DTE) Package.GetGlobalService(typeof (DTE));
Steven Kirk
@grokys
Dec 02 2015 17:47
i just get xml
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:47
Line 33 (from stacktrace) is var dte = (DTE) Package.GetGlobalService(typeof (DTE));
What can be null there?
Mkay, let's try Debug build instead
Steven Kirk
@grokys
Dec 02 2015 17:48
are you not seeing the same problems as me with avalon studio?
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:48
I can't build avalon studio because of missing packages
And everything else seem to work fine
Steven Kirk
@grokys
Dec 02 2015 17:49
you need the basicimplementation branch
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:52
Additional information: Error loading XAML: System.InvalidOperationException: Cannot bind to DataContext of object with no parent.
Getting there in debugger
Debugger starts fine however
Try this build
Steven Kirk
@grokys
Dec 02 2015 17:58
it works the first time, try it again
that error is what should be happening
it's what i'm trying to fix
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:58
I need console output
Does it allocate a console?
Steven Kirk
@grokys
Dec 02 2015 17:58
yeah, but it'd be easier if you could reproduce on your machine right?
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:59
I can't
Steven Kirk
@grokys
Dec 02 2015 17:59
open mainwindow.paml
run the project
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:59
No matter how many times I start/restart/clean/rebuild
Steven Kirk
@grokys
Dec 02 2015 17:59
really?
Nikita Tsukanov
@kekekeks
Dec 02 2015 17:59
it just starts debugger
Steven Kirk
@grokys
Dec 02 2015 17:59
ok, i'll try again
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:00
I need the lines that are being printed at failed attempt to launch debugger
Steven Kirk
@grokys
Dec 02 2015 18:01
ok, downloading the latest version
working now...
let me remove the registry entry
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:03
Then we need to use Debug build
VS extension doesn't do any heavy math, so it should be fine
Steven Kirk
@grokys
Dec 02 2015 18:05
yep, seems to work even without the console registry entry
weird
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:05
May be I've messed something in the previous build
But the fact that running designer prevents debugging needs investigation
Steven Kirk
@grokys
Dec 02 2015 18:07
the only difference between than and the previous is that it's the debug build?
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:07
Yep
BTW, binding to usercontrol's datacontext works for me in sandbox app
blob
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 18:13
Binding to UserControl's DataContext works for me also
Steven Kirk
@grokys
Dec 02 2015 18:15
the problem is doing <local:MyControl DataContext="{Binding Foo}">
in fact, it's not just a problem with UserControl - it's a problem with all controls
you can't bind DataContext... which is a problem!
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 18:16
bb.PNG
DataContext="{Binding Foo}" I do not do this anywhere
Steven Kirk
@grokys
Dec 02 2015 18:18
yeah, which is why we've not noticed before
i've got a unit test in place, just need to work on the fix
Andrey Kunchev
@donandren
Dec 02 2015 18:38
Amazing stuff, Perspex is looking better every day. @kekekeks I'll try to implement the keyboard on iOS, but I don't have any real device - so I'll test it only on emulator. And make pull request when ready.
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:38
@grokys https://dl.dropboxusercontent.com/u/18301199/PerspexVS.vsix - added App.paml to project template
@donandren that would be awesome
Steven Kirk
@grokys
Dec 02 2015 18:44
ok, the DataContext binding problem should be fixed
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:45
We can upload packages then
Steven Kirk
@grokys
Dec 02 2015 18:45
i think we should let everyone test first
it could have introduced other problems
though i hope not
Nikita Tsukanov
@kekekeks
Dec 02 2015 18:49
What will happen if control have changed it's parent?
Steven Kirk
@grokys
Dec 02 2015 18:57
it will now react correctly hopefully
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 19:08
Tested latest version, all seems be ok
Look like issue #338 got fixed somehow
Steven Kirk
@grokys
Dec 02 2015 19:11
oh good - you didn't say what caused it so i didn't fix it on purpose ;)
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 19:12
This issue was annoying for me, but now works fine
Steven Kirk
@grokys
Dec 02 2015 19:23
avalonstudio seems to work, but i'm not sure what it should do so not sure...
José Manuel Nieto
@SuperJMN
Dec 02 2015 19:43
guys, I will do an extra effort this weekend to solve the issues
please, sort them by priority
in the OmniXAML chat
I'm very sorry and I hope to have more time in the near future
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 19:51
@grokys is this valid Perspex xaml:
                                  <Rectangle Width="100" Height="100" Fill="Red">
                                      <Grid.Row>1</Grid.Row>
                                  </Rectangle>
Nikita Tsukanov
@kekekeks
Dec 02 2015 19:52
Should be
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 19:52
this works in WPF
I get Cannot find a property named "Row" in the type Perspex.Controls.Shapes.Rectangle
This message was deleted
The working WPF xaml:
<Window x:Class="WpfApplication6.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="100"/>
            <RowDefinition Height="100"/>
        </Grid.RowDefinitions>
            <Rectangle Width="100" Height="100" Fill="Red">
                <Grid.Row>1</Grid.Row>
            </Rectangle>
    </Grid>
</Window>
Nikita Tsukanov
@kekekeks
Dec 02 2015 19:57
@grokys are we releasing this stuff or delaying it for a week?
Nikita Tsukanov
@kekekeks
Dec 02 2015 20:23
BTW, that's not a regression, attached properties never worked this way in perspex
I've just checked with 0.1.1
Steven Kirk
@grokys
Dec 02 2015 20:57
I think we can do it tomorrow
Nikita Tsukanov
@kekekeks
Dec 02 2015 20:57
do what?
It's better to make a release announcement at thursday morning
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 21:28
Hit testing seems broken when using RenderTransform = new TranslateTransform()
Nikita Tsukanov
@kekekeks
Dec 02 2015 21:29
Yep
Because that's RenderTransform
it's ignored during hittest
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 21:30
is there layout transform ?
Nikita Tsukanov
@kekekeks
Dec 02 2015 21:30
Nope
Canvas.Left/Right to the rescue!
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 21:31
does it work in Grid ?
Nikita Tsukanov
@kekekeks
Dec 02 2015 21:32
No idea
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 21:32
Anyway that is jut for demo
Nikita Tsukanov
@kekekeks
Dec 02 2015 21:32
You need to put Canvas to the grid I guess
Wiesław Šoltés
@wieslawsoltes
Dec 02 2015 21:33
I have got working one of XamlBehaviors but only in code behind
its universal drag behavior using RenderTransform / TranslateTransform
Steven Kirk
@grokys
Dec 02 2015 21:41
@wieslawsoltes I think the attached property thing is aa pmnuxaml bug, you might want to report it there
Oops on mobile
Nikita Tsukanov
@kekekeks
Dec 02 2015 21:42
So we are releasing, yay
I'll upload packages and send you vsix
Steven Kirk
@grokys
Dec 02 2015 21:42
Yep I'll post the announcement tomorrow morning
Final version of the video
Please, notify me once you've uploaded the package
danwalmsley
@danwalmsley
Dec 02 2015 22:15
@grokys many thanks for fixing datacontext bug! :D all working wonderfully now!!!
I will be able to start making progress now !
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:16
@danwalmsley Please check final version of VSIX
And package from nuget.org (0.2.0-alpha3)
danwalmsley
@danwalmsley
Dec 02 2015 22:16
ok mate sure.
just downloading now...
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:16
It seems to be working fine but you never know
Andrey Kunchev
@donandren
Dec 02 2015 22:17
@kekekeks having error with PerspexVS
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:17
Which one
Andrey Kunchev
@donandren
Dec 02 2015 22:17
blob
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:17
ARGH
Please, provide me with ActivityLog.xml
Andrey Kunchev
@donandren
Dec 02 2015 22:17
<entry>
<record>584</record>
<time>2015/12/02 22:13:31.800</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.TypeInitializationException: The type initializer for 'PerspexVS.Infrastructure.PerspexBuildEvents' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at PerspexVS.Infrastructure.PerspexBuildEvents..ctor() in C:\Users\keks\Projects\GitHub\PerspexVS\src\PerspexVS\Infrastructure\PerspexBuildEvents.cs:line 31&#x000D;&#x000A; at PerspexVS.Infrastructure.PerspexBuildEvents..cctor() in C:\Users\keks\Projects\GitHub\PerspexVS\src\PerspexVS\Infrastructure\PerspexBuildEvents.cs:line 15&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at PerspexVS.Infrastructure.PerspexBuildEvents.get_Instance()&#x000D;&#x000A; at PerspexVS.PerspexEditorMargin..ctor(IWpfTextView textView) in C:\Users\keks\Projects\GitHub\PerspexVS\src\PerspexVS\PerspexEditorMargin.xaml.cs:line 38&#x000D;&#x000A; at PerspexVS.PerspexEditorMarginFactory.CreateMargin(IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin marginContainer) in C:\Users\keks\Projects\GitHub\PerspexVS\src\PerspexVS\Infrastructure\PerspexEditorMarginFactory.cs:line 32&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.ContainerMargin.<AddMargins>b__25_1(IWpfTextViewMarginProvider mp)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtensionTExtension,TMetadata,TExtensionInstance</description>
</entry>
this si from activity log
i can send you the full log
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:18
Nope, that's sufficient
Andrey Kunchev
@donandren
Dec 02 2015 22:18
but only this error looks relevant to me
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:19
Oh
THANKS
That's caused by missing registry key and calling Equals on value returned by Registry.GetValue
I would never got this exception on my machine
You saved us from major fuckup )
Andrey Kunchev
@donandren
Dec 02 2015 22:21
:+1:
danwalmsley
@danwalmsley
Dec 02 2015 22:21
@kekekeks sorry vsix not working for me
will just send you activity log
blob
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:22
I'm uploading fixed version
danwalmsley
@danwalmsley
Dec 02 2015 22:22
ok
danwalmsley
@danwalmsley
Dec 02 2015 22:22
il wait for that
@kekekeks same again...
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:25
Whoops, wrong file, sorry
danwalmsley
@danwalmsley
Dec 02 2015 22:25
:D
@kekekeks same again...
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:27
ehm
danwalmsley
@danwalmsley
Dec 02 2015 22:27
shall i send activitylog?
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:27
yep
I've double-checked md5sum this time
danwalmsley
@danwalmsley
Dec 02 2015 22:27
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:28
nothing perspex-related there
danwalmsley
@danwalmsley
Dec 02 2015 22:28
hmmm for some reason ... I dont get designer or anything...
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:29
Oh, wait
System.BadImageFormatException: .NET data directory RVA is 0&#x000D;&#x000A; at dnlib.DotNet.MD.MetaDataCreator.Create(IPEImage peImage, Boolean verify)&#x000D;&#x000A; at dnlib.DotNet.MD.MetaDataCreator.Load(String fileName)&#x000D;&#x000A; at dnlib.DotNet.AssemblyDef.Load(String fileName, ModuleCreationOptions options)&#x000D;&#x000A; at dnlib.DotNet.AssemblyDef.Load(String fileName)&#x000D;&#x000A; at PerspexVS.IntelliSense.MetadataLoader.LoadAssemblies(String target) in C:\Users\keks\Projects\GitHub\PerspexVS\src\PerspexVS\IntelliSense\MetadataLoader.cs:line 145
danwalmsley
@danwalmsley
Dec 02 2015 22:29
and error comes up when I open .paml file
ah
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:29
Do you have native libs or something?
danwalmsley
@danwalmsley
Dec 02 2015 22:29
not sure
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:29
Well, I'll add a workaround for that
danwalmsley
@danwalmsley
Dec 02 2015 22:30
i think its just default install of vs
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:30
I'm talking about your project output directory
danwalmsley
@danwalmsley
Dec 02 2015 22:30
ah
yes
it does
has some dlls in there that are not .net
This build should ignore exception during assembly loading
danwalmsley
@danwalmsley
Dec 02 2015 22:33
ok just testing ow
ok thats fixed that
for some reason
my code behinds are not appearing as a subitem of my paml files?
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:36
Have you created them using template from vsix?
danwalmsley
@danwalmsley
Dec 02 2015 22:36
originally
but other day I had to recreate project and added files back in manually
so its probably that
how can I get them back to be subitems?
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:37
Add <DependentUpon> in csproj
danwalmsley
@danwalmsley
Dec 02 2015 22:37
ok cheers
everything else seems ok in plugin
Johan Larsson
@JohanLarsson
Dec 02 2015 22:38
there is an extentsion for vs that does that: file nesting
danwalmsley
@danwalmsley
Dec 02 2015 22:38
@JohanLarsson thanks ill have a look!
I use it for grouping viewmodels under views
Andrey Kunchev
@donandren
Dec 02 2015 22:39
PerspexVS.vsix working now for me
danwalmsley
@danwalmsley
Dec 02 2015 22:39
pretty handy... good tip
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:41
@danwalmsley please check that your code works with 0.2.0-alpha3 from nuget.org
danwalmsley
@danwalmsley
Dec 02 2015 22:41
just trying now
cant bind to datacontext bug again
must not have made it in!
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:43
ARGH
danwalmsley
@danwalmsley
Dec 02 2015 22:43
sorry mate!!!
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:43
I'm pretty sure I was building the latest version
danwalmsley
@danwalmsley
Dec 02 2015 22:43
long night hey!
ok gonna have to leave you guys to it
good look for release... speak to you guys tomorrow!!!
:D
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:44
Wait
was it fixed by nightly build?
danwalmsley
@danwalmsley
Dec 02 2015 22:47
yes it was
current nightly is perfect!!!
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:48
The point is that 0.2.0-alpha3 seems to contain new code
danwalmsley
@danwalmsley
Dec 02 2015 22:49
at least it doesnt include the commit for data context...
Perspex/Perspex@8fb9c5c
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:51
Is that AvalonStudio + basicimplementation branch?
danwalmsley
@danwalmsley
Dec 02 2015 22:52
yes
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:54
Ehm
What to do to reproduce the crash?
blob
danwalmsley
@danwalmsley
Dec 02 2015 22:55
just run it
it should have crashed already
Nikita Tsukanov
@kekekeks
Dec 02 2015 22:55
Well, it haven't
danwalmsley
@danwalmsley
Dec 02 2015 22:55
hang on
might have messed up
i think i installed alpha 3 perspex.desktop
and an older perspex...
yeh
sorry that was it
ok alpha3 works