alternetsoft / AlternetUI

MIT License
27 stars 2 forks source link

UiXml previewer exceptions in Samples #15

Closed generalloki closed 1 year ago

generalloki commented 1 year ago

Reported by @neoxeo : Many different UiXml previewer exceptions in sample projects.

I investigated this issue. Basically there are problems:

generalloki commented 1 year ago

In 0.9.201 I have modified all samples to avoid UiXml previewer incorrect behavior. But in any case UiXml previewer should be improved and fixed

generalloki commented 1 year ago

From @neoxeo : I have Avalonia and AlternetUI in my Visual Studio 2022 17.7.0 Preview 2, when I open open uixml file to have preview, "Avalonia Diagnostics" send me errors not alternetUI output window even if I select it before to open uixml. Window stay empty (no error, no information) but previewer doesn't show preview because have errors .

generalloki commented 1 year ago

@generalloki :

@dmitry-medvedev : Known issues with the previewer: -If uiXML is not valid - the previewer does not display anything. -We may consider custom drawings for known controls. -Application needs to be compiled for the previwer to work.

-UiXML code completion should not display enumerations as tags.

generalloki commented 1 year ago

Previewer doesn't like "embres:MenuSample.Resources.Icons.Small.Photo16.png" and when they have own xml.

generalloki commented 1 year ago

In 0.9.201 previewer shows desktop instead of empty window

neoxeo commented 1 year ago

From @neoxeo : I have Avalonia and AlternetUI in my Visual Studio 2022 17.7.0 Preview 2, when I open open uixml file to have preview, "Avalonia Diagnostics" send me errors not alternetUI output window even if I select it before to open uixml. Window stay empty (no error, no information) but previewer doesn't show preview because have errors .

Not present in version 0.9.201 : solved

But Avalonia is always present in previewer debug : 10:11:17.706 [Verbose] Started AlternetUIDesigner.Start() 10:11:17.706 [Verbose] Started AlternetUIDesigner.LoadTargetsAndStartProcessAsync() 10:11:17.706 [Verbose] Started AvaloniaDesigner.LoadTargetsAsync() 10:11:17.823 [Verbose] Finished AvaloniaDesigner.LoadTargetsAsync() 10:11:17.823 [Verbose] Finished AlternetUIDesigner.LoadTargetsAndStartProcessAsync() 10:11:17.823 [Verbose] Finished AlternetUIDesigner.Start()

Normal ?

neoxeo commented 1 year ago

Previewer error is still present in ContolsSample with TreeViewPage with version 0.9.201 (60a2600b9e6995cfcab526dcdc09689b12e1cb98) commit

10:24:35.651 [Verbose] 22900 Started PreviewerProcess.OnMessageAsync()
10:24:35.651 [Debug] 22900 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "NullReferenceException", Message: "Object reference not set to an …", StackTrace: "   at ControlsSample.TreeViewPa…", UixmlLineNumber: null, UixmlLinePosition: null } }
10:24:35.667 [Error] 22900 UpdateXamlResult error
System.Xaml.XamlException: Object reference not set to an instance of an object.
   at ControlsSample.TreeViewPage.ResetItemsToDefault()
   at ControlsSample.TreeViewPage.ShowRootLinesCheckBox_CheckedChanged(Object sender, EventArgs e)
   at Alternet.UI.CheckBox.RaiseCheckedChanged(EventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 89
   at Alternet.UI.CheckBox.OnIsCheckedPropertyChanged(Boolean oldValue, Boolean newValue) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 48
   at Alternet.UI.CheckBox.OnIsCheckedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 43
   at Alternet.UI.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 2076
   at Alternet.UI.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\FrameworkElement.cs:line 577
   at Alternet.UI.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 1754
   at Alternet.UI.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 1568
   at Alternet.UI.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 839
   at Alternet.UI.DependencyObject.SetValue(DependencyProperty dp, Object value) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 428
   at Alternet.UI.DependencyObject.SetValue(DependencyProperty dp, Boolean value) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 466
   at Alternet.UI.CheckBox.set_IsChecked(Boolean value) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 61
   at Builder_b36eb56b29774fdf8ba5277e2fed8dae_.__UixmlPortXamlIlPopulate(IServiceProvider , TreeViewPage )
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadOrPopulate(Type created, Object rootInstance) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 236
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 201
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64
10:24:35.667 [Verbose] 22900 Finished PreviewerProcess.OnMessageAsync()
10:24:35.698 [Verbose] 22900 Started PreviewerProcess.OnMessageAsync()
10:24:35.714 [Debug] 22900 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "NullReferenceException", Message: "Object reference not set to an …", StackTrace: "   at ControlsSample.TreeViewPa…", UixmlLineNumber: null, UixmlLinePosition: null } }
10:24:35.714 [Error] 22900 UpdateXamlResult error
System.Xaml.XamlException: Object reference not set to an instance of an object.
   at ControlsSample.TreeViewPage.ResetItemsToDefault()
   at ControlsSample.TreeViewPage.ShowRootLinesCheckBox_CheckedChanged(Object sender, EventArgs e)
   at Alternet.UI.CheckBox.RaiseCheckedChanged(EventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 89
   at Alternet.UI.CheckBox.OnIsCheckedPropertyChanged(Boolean oldValue, Boolean newValue) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 48
   at Alternet.UI.CheckBox.OnIsCheckedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 43
   at Alternet.UI.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 2076
   at Alternet.UI.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\FrameworkElement.cs:line 577
   at Alternet.UI.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 1754
   at Alternet.UI.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 1568
   at Alternet.UI.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 839
   at Alternet.UI.DependencyObject.SetValue(DependencyProperty dp, Object value) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 428
   at Alternet.UI.DependencyObject.SetValue(DependencyProperty dp, Boolean value) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Port\WindowsBase\Windows\DependencyObject.cs:line 466
   at Alternet.UI.CheckBox.set_IsChecked(Boolean value) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Controls\CheckBox.cs:line 61
   at Builder_78a0ca3b5944403cafcb16bad2197d86_.__UixmlPortXamlIlPopulate(IServiceProvider , TreeViewPage )
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadOrPopulate(Type created, Object rootInstance) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 236
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 201
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64
10:24:35.714 [Verbose] 22900 Finished PreviewerProcess.OnMessageAsync()
neoxeo commented 1 year ago

Previewer error is still present in ContolsTest with CustomDrawTestPage.uixml with version 0.9.201 (https://github.com/alternetsoft/AlternetUI/commit/60a2600b9e6995cfcab526dcdc09689b12e1cb98) commit

10:28:48.792 [Debug] 14344 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "XamlParseException", Message: "Unable to resolve type CustomDr…", StackTrace: "   at XamlX.Transform.Transform…", UixmlLineNumber: 12, UixmlLinePosition: 6 } }
10:28:48.792 [Error] 14344 UpdateXamlResult error
System.Xaml.XamlException: 'Unable to resolve type CustomDrawControl from namespace clr-namespace:ControlsTest;assembly=ControlsTest Line 12, position 6.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 110
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 36
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 148
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 60
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 77
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Transform.AstTransformationContext.Visit(IXamlAstNode root, IXamlAstTransformer transformer) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 75
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Compiler\XamlCompiler.cs:line 66
   at Alternet.UI.Markup.Xaml.XamlIl.CompilerExtensions.UixmlPortXamlIlCompiler.ParseAndCompile(String xaml, String baseUri, IFileSource fileSource, IXamlTypeBuilder`1 tb, IXamlType overrideRootType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\CompilerExtensions\UixmlPortXamlIlCompiler.cs:line 149
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 197
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64' numéro de ligne '12' et position de ligne '6'.
10:28:48.795 [Verbose] 14344 Finished PreviewerProcess.OnMessageAsync()
10:28:48.795 [Verbose] 14344 Started PreviewerProcess.OnMessageAsync()
10:28:48.795 [Debug] 14344 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "XamlParseException", Message: "Unable to resolve type CustomDr…", StackTrace: "   at XamlX.Transform.Transform…", UixmlLineNumber: 12, UixmlLinePosition: 6 } }
10:28:48.795 [Error] 14344 UpdateXamlResult error
System.Xaml.XamlException: 'Unable to resolve type CustomDrawControl from namespace clr-namespace:ControlsTest;assembly=ControlsTest Line 12, position 6.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 110
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 36
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 148
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 60
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 77
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Transform.AstTransformationContext.Visit(IXamlAstNode root, IXamlAstTransformer transformer) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 75
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Compiler\XamlCompiler.cs:line 66
   at Alternet.UI.Markup.Xaml.XamlIl.CompilerExtensions.UixmlPortXamlIlCompiler.ParseAndCompile(String xaml, String baseUri, IFileSource fileSource, IXamlTypeBuilder`1 tb, IXamlType overrideRootType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\CompilerExtensions\UixmlPortXamlIlCompiler.cs:line 149
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 197
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64' numéro de ligne '12' et position de ligne '6'.
10:28:48.795 [Verbose] 14344 Finished PreviewerProcess.OnMessageAsync()
neoxeo commented 1 year ago

Previewer error is still present in ContolsTest with MainTestWindow.uixml with version 0.9.201 (https://github.com/alternetsoft/AlternetUI/commit/60a2600b9e6995cfcab526dcdc09689b12e1cb98) commit

10:32:55.701 [Verbose] 7068 Started PreviewerProcess.OnMessageAsync()
10:32:55.701 [Debug] 7068 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "XamlParseException", Message: "Unable to resolve type PageCont…", StackTrace: "   at XamlX.Transform.Transform…", UixmlLineNumber: 13, UixmlLinePosition: 6 } }
10:32:55.701 [Error] 7068 UpdateXamlResult error
System.Xaml.XamlException: 'Unable to resolve type PageContainer from namespace clr-namespace:ControlsTest;assembly=ControlsTest Line 13, position 6.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 110
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 36
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 148
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 60
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 77
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Transform.AstTransformationContext.Visit(IXamlAstNode root, IXamlAstTransformer transformer) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 75
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Compiler\XamlCompiler.cs:line 66
   at Alternet.UI.Markup.Xaml.XamlIl.CompilerExtensions.UixmlPortXamlIlCompiler.ParseAndCompile(String xaml, String baseUri, IFileSource fileSource, IXamlTypeBuilder`1 tb, IXamlType overrideRootType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\CompilerExtensions\UixmlPortXamlIlCompiler.cs:line 149
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 197
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64' numéro de ligne '13' et position de ligne '6'.
10:32:55.701 [Verbose] 7068 Finished PreviewerProcess.OnMessageAsync()
10:32:55.701 [Verbose] 7068 Started PreviewerProcess.OnMessageAsync()
10:32:55.717 [Debug] 7068 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "XamlParseException", Message: "Unable to resolve type PageCont…", StackTrace: "   at XamlX.Transform.Transform…", UixmlLineNumber: 13, UixmlLinePosition: 6 } }
10:32:55.717 [Error] 7068 UpdateXamlResult error
System.Xaml.XamlException: 'Unable to resolve type PageContainer from namespace clr-namespace:ControlsTest;assembly=ControlsTest Line 13, position 6.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 110
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 36
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 148
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 60
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 77
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Transform.AstTransformationContext.Visit(IXamlAstNode root, IXamlAstTransformer transformer) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 75
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Compiler\XamlCompiler.cs:line 66
   at Alternet.UI.Markup.Xaml.XamlIl.CompilerExtensions.UixmlPortXamlIlCompiler.ParseAndCompile(String xaml, String baseUri, IFileSource fileSource, IXamlTypeBuilder`1 tb, IXamlType overrideRootType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\CompilerExtensions\UixmlPortXamlIlCompiler.cs:line 149
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 197
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64' numéro de ligne '13' et position de ligne '6'.
10:32:55.717 [Verbose] 7068 Finished PreviewerProcess.OnMessageAsync()
neoxeo commented 1 year ago

Previewer error is still present in ContolsTest with WebBrowserTestPage.uixml with version 0.9.201 (https://github.com/alternetsoft/AlternetUI/commit/60a2600b9e6995cfcab526dcdc09689b12e1cb98) commit

10:34:53.411 [Verbose] 11068 Started PreviewerProcess.OnMessageAsync()
10:34:53.411 [Debug] 11068 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "TypeInitializationException", Message: "The type initializer for 'Contr…", StackTrace: "   at System.RuntimeMethodHandl…", UixmlLineNumber: null, UixmlLinePosition: null } }
10:34:53.411 [Error] 11068 UpdateXamlResult error
System.Xaml.XamlException: The type initializer for 'ControlsTest.WebBrowserTestPage' threw an exception.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadOrPopulate(Type created, Object rootInstance) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 228
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 201
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64
10:34:53.411 [Verbose] 11068 Finished PreviewerProcess.OnMessageAsync()
10:34:53.421 [Verbose] 11068 Started PreviewerProcess.OnMessageAsync()
10:34:53.421 [Debug] 11068 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "TypeInitializationException", Message: "The type initializer for 'Contr…", StackTrace: "   at System.RuntimeMethodHandl…", UixmlLineNumber: null, UixmlLinePosition: null } }
10:34:53.421 [Error] 11068 UpdateXamlResult error
System.Xaml.XamlException: The type initializer for 'ControlsTest.WebBrowserTestPage' threw an exception.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadOrPopulate(Type created, Object rootInstance) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 228
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 201
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64
10:34:53.421 [Verbose] 11068 Finished PreviewerProcess.OnMessageAsync()
neoxeo commented 1 year ago

Previewer error is still present in CustomContolsSample with MainWindow.uixml with version 0.9.201 (https://github.com/alternetsoft/AlternetUI/commit/60a2600b9e6995cfcab526dcdc09689b12e1cb98) commit

10:40:53.646 [Verbose] 18344 Started PreviewerProcess.OnMessageAsync()
10:40:53.646 [Debug] 18344 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "XamlParseException", Message: "Unable to resolve type KnobCont…", StackTrace: "   at XamlX.Transform.Transform…", UixmlLineNumber: 32, UixmlLinePosition: 20 } }
10:40:53.646 [Error] 18344 UpdateXamlResult error
System.Xaml.XamlException: 'Unable to resolve type KnobControl from namespace clr-namespace:CustomControlsSample;assembly=CustomControlsSample Line 32, position 20.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 110
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 36
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 148
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 60
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 77
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Transform.AstTransformationContext.Visit(IXamlAstNode root, IXamlAstTransformer transformer) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 75
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Compiler\XamlCompiler.cs:line 66
   at Alternet.UI.Markup.Xaml.XamlIl.CompilerExtensions.UixmlPortXamlIlCompiler.ParseAndCompile(String xaml, String baseUri, IFileSource fileSource, IXamlTypeBuilder`1 tb, IXamlType overrideRootType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\CompilerExtensions\UixmlPortXamlIlCompiler.cs:line 149
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 197
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64' numéro de ligne '32' et position de ligne '20'.
10:40:53.662 [Verbose] 18344 Finished PreviewerProcess.OnMessageAsync()
neoxeo commented 1 year ago

Previewer error is still present in PaintSample with ColorSelector.uixml with version 0.9.201 (https://github.com/alternetsoft/AlternetUI/commit/60a2600b9e6995cfcab526dcdc09689b12e1cb98) commit

10:55:26.117 [Verbose] 22788 Started PreviewerProcess.OnMessageAsync()
10:55:26.117 [Debug] 22788 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "XamlParseException", Message: "Unable to resolve type Selected…", StackTrace: "   at XamlX.Transform.Transform…", UixmlLineNumber: 7, UixmlLinePosition: 4 } }
10:55:26.117 [Error] 22788 UpdateXamlResult error
System.Xaml.XamlException: 'Unable to resolve type SelectedColorDisplay from namespace clr-namespace:PaintSample Line 7, position 4.
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveTypeCore(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 110
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, String xmlns, String name, Boolean isMarkupExtension, List`1 typeArguments, IXamlLineInfo lineInfo, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 36
   at XamlX.Transform.Transformers.TypeReferenceResolver.ResolveType(AstTransformationContext context, XamlAstXmlTypeReference xmlref, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 148
   at XamlX.Transform.Transformers.TypeReferenceResolver.Transform(AstTransformationContext context, IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\Transformers\TypeReferenceResolver.cs:line 136
   at XamlX.Transform.AstTransformationContext.Visitor.Visit(IXamlAstNode node) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 58
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 60
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 77
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Ast.XamlAstNode.VisitList[T](IList`1 list, IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 78
   at XamlX.Ast.XamlAstObjectNode.VisitChildren(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Xaml.cs:line 79
   at XamlX.Ast.XamlAstNode.Visit(IXamlAstVisitor visitor) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Ast\Common.cs:line 64
   at XamlX.Transform.AstTransformationContext.Visit(IXamlAstNode root, IXamlAstTransformer transformer) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Transform\AstTransformationContext.cs:line 75
   at XamlX.Compiler.XamlCompiler`2.Transform(XamlDocument doc, Boolean strict) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\XamlX\Compiler\XamlCompiler.cs:line 66
   at Alternet.UI.Markup.Xaml.XamlIl.CompilerExtensions.UixmlPortXamlIlCompiler.ParseAndCompile(String xaml, String baseUri, IFileSource fileSource, IXamlTypeBuilder`1 tb, IXamlType overrideRootType) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\CompilerExtensions\UixmlPortXamlIlCompiler.cs:line 149
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 197
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 143
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64' numéro de ligne '7' et position de ligne '4'.
10:55:26.133 [Verbose] 22788 Finished PreviewerProcess.OnMessageAsync()
generalloki commented 1 year ago

Fixed:

generalloki commented 1 year ago

I reproduced bug "ExampleContextMenu and MainWindow previewer are strange", will think on how to fix it.

neoxeo commented 1 year ago

I reproduced bug "ExampleContextMenu and MainWindow previewer are strange", will think on how to fix it.

I have Close this issue because I thought it was the same thing as issue 15. This is same or not ?

generalloki commented 1 year ago

Yes, we collect in #15 all problems related to UiXmlPreview

neoxeo commented 1 year ago

Error in ContolsTest with WebBrowserTestPage.uixml not fixed with last commit (b7555779d1f478372a9e150d7925c2b2c687adaf) version

15:54:09.977 [Verbose] 5104 Started PreviewerProcess.OnMessageAsync()
15:54:09.977 [Debug] 5104 <= UpdateXamlResultMessage { Error: "Error while updating UIXML prev…", Handle: null, Exception: ExceptionDetails { ExceptionType: "TypeInitializationException", Message: "The type initializer for 'Contr…", StackTrace: "   at System.RuntimeMethodHandl…", UixmlLineNumber: null, UixmlLinePosition: null } }
15:54:09.977 [Error] 5104 UpdateXamlResult error
System.Xaml.XamlException: The type initializer for 'ControlsTest.WebBrowserTestPage' threw an exception.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadOrPopulate(Type created, Object rootInstance) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 228
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 201
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 159
   at Alternet.UI.Markup.Xaml.XamlIl.UixmlPortXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortXamlIlRuntimeCompiler.cs:line 276
   at Alternet.UI.Markup.Xaml.UixmlPortRuntimeXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean designMode) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\Port\Markup.Xaml.Loader\UixmlPortRuntimeXamlLoader.cs:line 45
   at Alternet.UI.UixmlLoader.Load(Stream xamlStream, Assembly localAssembly) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Xaml\UixmlLoader.cs:line 21
   at Alternet.UI.Integration.UIXmlPreviewerService.LoadControlFromUixml(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 149
   at Alternet.UI.Integration.UIXmlPreviewerService.ProcessUixmlUpdate(IDictionary`2 parameters) in C:\Users\Testeur1\source\repos\AlternetUI\Source\Alternet.UI\Integration\UIXmlPreviewerService.cs:line 64
15:54:09.977 [Verbose] 5104 Finished PreviewerProcess.OnMessageAsync()

Others seem to be OK : ContolsSample with TreeViewPage ContolsTest with CustomDrawTestPage.uixml ContolsTest with MainTestWindow.uixml CustomContolsSample with MainWindow.uixml PaintSample with ColorSelector.uixml

generalloki commented 1 year ago

All problems of UiXMl previewer now in #37