sericaer
Topic Author
Posts: 13
Joined: 09 Oct 2021, 09:29

When run the Sample/Gallery which in github, Unity report some errors.

10 Oct 2021, 15:54

Hello, When run the Sample/Gallery which in github, Unity report some errors.

1. Open the Samples\Gallery\Unity directory with Unity.
2. Install the NoesisGUI-Unity-3.1.1-Indie by Unity packageManager.
3. Run the Gallery.Scene.

The scene is running, but Unity report some errors:

[noesis] Dependency not found '/Gallery;component/Assets/NoesisGUI/Theme/NoesisTheme.DarkAqua.xaml'. Make sure absolute paths start with '/'.
UnityEngine.Debug:LogError (object)
NoesisGUIExtensions.Dependency:set_Source (System.Uri) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/XamlDependencies.cs:24)
Noesis.Extend/<>c__DisplayClass481_0`2<NoesisGUIExtensions.Dependency, System.Uri>:<CreateSetterHelper>b__0 (object,System.Uri) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/ExtendProps.cs:255)
Noesis.Extend/PropertyAccessorRW`1<System.Uri>:Set (object,System.Uri) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/ExtendProps.cs:170)
Noesis.Extend:SetPropertyValue<System.Uri> (Noesis.Extend/PropertyAccessor,object,System.Uri) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/Extend.cs:4201)
Noesis.Extend:SetPropertyValue_Uri (intptr,int,intptr,intptr) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/Extend.cs:4389)
Noesis.GUI:LoadComponent (object,string) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/NoesisGUI.cs:322)
Gallery.MainWindow:InitializeComponent () (at Assets/NoesisGUI/Samples/Gallery/MainWindow.xaml.cs:200)
Gallery.MainWindow:.ctor () (at Assets/NoesisGUI/Samples/Gallery/MainWindow.xaml.cs:42)
(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure)
Noesis.Extend:CreateInstance (intptr,intptr) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/Extend.cs:4681)
Noesis.GUI:LoadXaml (System.IO.Stream,string) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/API/Core/NoesisGUI.cs:270)
NoesisXaml:Load () (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/NoesisXaml.cs:17)
NoesisView:LoadXaml (bool) (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/NoesisView.cs:465)
NoesisView:OnEnable () (at D:/BaiduNetdiskDownload/NoesisGUI-Unity-3.1.1-Indie/Runtime/NoesisView.cs:553)

My Unity version is 2021.1.9f1c1, NoesisGUI version is 3.1.1.

Best regards
 
User avatar
sfernandez
Site Admin
Posts: 2984
Joined: 22 Dec 2011, 19:20

Re: When run the Sample/Gallery which in github, Unity report some errors.

13 Oct 2021, 10:40

Hi, it is a bug in XamlDependencies.cs, it incorrectly reports as errors uris that contain the assembly name.
Thanks for letting us know, we fixed it for the next release.

In the meantime you can modify XamlDependencies.cs line 21 to:
string path = _uri?.GetPath();

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests