Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In app "Settings" button does not open uno's settings app #43

Open
sasakrsmanovic opened this issue Dec 17, 2024 · 27 comments
Open

In app "Settings" button does not open uno's settings app #43

sasakrsmanovic opened this issue Dec 17, 2024 · 27 comments
Labels
difficulty/tbd kind/bug Something isn't working tool/Hot Design™ tool/Hot Reload triage/untriaged Indicates an issue requires triaging or verification.

Comments

@sasakrsmanovic
Copy link

Current behavior

Reported here
unoplatform/uno#18833 (comment)

User cannot click on 'SETTINGS'

image

Expected behavior

User can open settings and log on

Which tool(s) are affected?

Hot Design™, Hot Reload

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Affected platforms

No response

Uno.Sdk version

No response

IDE used

No response

IDE version

No response

Uno Platform Extension version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@sasakrsmanovic sasakrsmanovic added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. difficulty/tbd labels Dec 17, 2024
@dr1rrb
Copy link
Member

dr1rrb commented Dec 17, 2024

Hey @xperiandri could you give us more information about your issue:

  1. Which IDE are you using (Visual Studio, VS Code, Rider ?)
  2. Did you run uno-check? Does everything is green ? https://platform.uno/docs/articles/external/uno.check/doc/using-uno-check.html
  3. Do you have the latest version of the uno-platform extension installed in your IDE?
  4. Could you send us the log of your application?
  5. With your app started, could you send us the content of the "uno platform" output window in verbose mode
    (To get it in verbose in VisualStudio: Go to Tools > Options > Projects and Solutions, set MSBuild project output verbosity to Diagnostic, restart visual studio)

Thank you for your help

@xperiandri
Copy link

xperiandri commented Dec 17, 2024

  1. Visual Studio 2022 17.12.3 and VS Code on Mac
  2. Yes
  3. Yes

@xperiandri
Copy link

@VolodymyrZaburmekha

@DevTKSS
Copy link

DevTKSS commented Dec 18, 2024

@sasakrsmanovic @xperiandri actually yesterday I have gotten a similar thing on my first uno HotReload app (wanted to add something) and it was showing also way more laggyness (the app) and not the Studio icon i seen there before.

so I would like to share some details for you to inspect for matching:

  • Is Desktop the ONE AND ONLY Target on this app?
    No? Do create one, using recommended "uno plattform app" template in vs studio, mvux and xaml. Does that work?
  • Do you have this issue only on the existing App or also if you do a new one?
  • Did you upload this repo on github deleted the local files and downloaded it again?
    Please do in this case also a new one that started this missing Studio issue for this application beside the strange banner.

@dr1rrb
Copy link
Member

dr1rrb commented Dec 18, 2024

@xperiandri Are you able to share some logs with us, especially those coming from the "Uno Platfrom" output? (With "Diagnostic" verbosity, don't forget to restart VS after enabling it)

image

Thank you

@dr1rrb
Copy link
Member

dr1rrb commented Dec 18, 2024

@DevTKSS This is interesting, did you face some cases where you had to do all of this to get the settings button to work? Are you able to find a scenario where you repro this "settings button not working" which is solved by doing those tricks?

@dr1rrb dr1rrb changed the title Hot Reload is available only to registered users In app "Settings" button does not open uno's settings app Dec 18, 2024
@DevTKSS
Copy link

DevTKSS commented Dec 18, 2024

@dr1rrb Reading and seeing your screenshot... Never done anything there in my visual studio... Should I do that? Not knowing much about msbuild...
To the repro...
What I did get to work has been, removing the additional window target at least has let me get the login back to recognized, but the studio button was still missing AND this app has got +1000% more laggy than before uploading to github and cloning back to my local maschine, thats why i decided to port the content to my new app with only desktop target. The big differences has been the Windows target, which has been not build to just included! No HotReload or studio button had shown up as i just tried to build towards it where i was stunned it had no issue because of the anycpu which has been an issue before. But as said, beside it has build no uno advantages usable only seen the live tree in an uno app then first time, which is not showing in desktop target.
Hm... Yes, so desktop target only, than the current uno.sdk version think it is 5.56? The other bad one has had a minor one like 54 or 53. Using recommended template... Learned how to get binding working(not x:bind) from studio 😁 but its not able to fill navigation propertys at this point....

Ah! And if you have any komments added in your code of xaml, delete it, the engine do read komments🤣 crazy things happened catched on video but not had the time to polish it up and/or push it up into my onedrive, sorry. And GitHub is not allowing me to invite someone to a currently private repo or change the modifyer with my not desktop device🥴 than you could clone it and see yourself. But its not explicitly a small repo its just pushed up and since the described issues and porting the content i am not planning do fixes on it.

@nickrandolph
Copy link

@DevTKSS thanks for the feedback - beyond the issue pertaining to the settings button, can you please log separate issues relating to what you're seeing for x:Bind, Navigation properties and xaml comments. We have some known issues with the x:Bind path picker; Navigation properties should be available (but you need to make sure Navigation is added to your application) and xaml comments should be supported (so raise an issue if this isn't the case).

@DevTKSS
Copy link

DevTKSS commented Dec 19, 2024

x:Bind is known to be not currently working properly for Binding to viewModel in mvux especially, coming from sourcegenerators can not depend on each other. For some a workaround is working but to me not, getting NullReferenceException as soon as i bind a command just only OneTime.
I can not tell the explicit issue number because there are so many made for this. Its a Microsoft issue also. but to me thats a good reason why the engine would not give me the opportunity to use it when using mvux. Did not search for issue listed to that, not enough time on my side. Have to restart the application &studio if i clicked on x:bind, its hanging then.

@VolodymyrZaburmekha
Copy link

Hi, @dr1rrb, sorry for a late reply, here are some answers, that @xperiandri didn't provide

  1. Could you send us the log of your application?

Do you mean log from "Debug Console" or Terminal or both?

  1. With your app started, could you send us the content of the "uno platform" output window in verbose mode
    (To get it in verbose in VisualStudio: Go to Tools > Options > Projects and Solutions, set MSBuild project output verbosity to Diagnostic, restart visual studio)

I'm using VS Code on Mac, not sure how to provide exactly what you described for Visual Studio.
Here is the output from the Uno Platform

[Info] Launching XAML language server /Users/admin/.vscode/extensions/unoplatform.vscode-0.18.5/bin/lshost/net9.0/Uno.LSP.Host.dll
[Info] Found 'ms-dotnettools.csharp' version 2.55.29.
[Info] Found 'ms-dotnettools.csdevkit' version 1.14.14.
[Info] Found 'ms-dotnettools.dotnet-maui' version 1.6.16.
[Info] C# extension onServerStateChange API is available.
[Info] Running in Dev Kit mode
[Info] Uno Platform "dotnet new" templates are already installed. The templates may be updated by running "dotnet new install Uno.Templates"
[Info] Setting active project /Users/admin/Projects/ecierge/PropertyManagement/Console/App/Console.App.csproj

Here is the output from Uno Platform - Hot Reload

[Info] Launching remote control server (Port:57961, Path:/Users/admin/.nuget/packages/uno.winui.devserver/5.5.87/buildTransitive/../tools/rc/host/net9.0/Uno.UI.RemoteControl.Host.dll)
warn: Uno.UI.RemoteControl.Host.Extensibility.AddIns[0]
      Failed to get target frameworks of solution '/Users/admin/Projects/ecierge/PropertyManagement/eCierge.sln'. This usually indicates that the solution is in an invalid state (e.g. a referenced project is missing on disk). Please fix and restart your IDE (command used: `dotnet build "/Users/admin/Projects/ecierge/PropertyManagement/eCierge.sln" --target:UnoDumpTargetFrameworks "-p:UnoDumpTargetFrameworksTargetFile=/var/folders/vj/9t3c5b6d53s7r59gpkqry3hh0000gn/T/tmp412eFh.tmp" --verbosity quiet`).

dbug: Microsoft.AspNetCore.Hosting.Diagnostics[3]
      Hosting starting

dbug: Microsoft.AspNetCore.Hosting.Diagnostics[4]
      Hosting started

dbug: Microsoft.AspNetCore.Hosting.Diagnostics[13]
      Loaded hosting startup assembly Uno.UI.RemoteControl.Host

Hosting environment: Production
Content root path: /Users/admin/Projects/ecierge/PropertyManagement
Now listening on: http://[::]:57961
Application started. Press Ctrl+C to shut down.

dbug: Uno.UI.RemoteControl.Host.IdeChannel.IdeChannelServer[0]
      IDE Connected

dbug: Microsoft.AspNetCore.Server.Kestrel.Connections[39]
      Connection id "0HN901V0SGDJR" accepted.

dbug: Microsoft.AspNetCore.Server.Kestrel.Connections[1]
      Connection id "0HN901V0SGDJR" started.

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:57961/rc - - -

dbug: Microsoft.AspNetCore.Routing.RouteBase[1]
      Request successfully matched the route with name '(null)' and template 'rc'

info: Microsoft.AspNetCore.Builder.IApplicationBuilder[0]
      Accepted connection from ::ffff:127.0.0.1

dbug: Uno.UI.RemoteControl.Host.RemoteControlServer[0]
      Starting RemoteControlServer

If I create a new project from the template, hot reload works just fine and it doesn't ask me to sign in

@dr1rrb
Copy link
Member

dr1rrb commented Dec 19, 2024

Hey @VolodymyrZaburmekha thanks for the logs. If you are using VS code, the most important output in our case is the "Uno Platform - Hot Reload" (and there is no additional steps to enable the verbose logging), so in the log you sent there is an interesting line:

Failed to get target frameworks of solution '/Users/admin/Projects/ecierge/PropertyManagement/eCierge.sln'. This usually indicates that the solution is in an invalid state (e.g. a referenced project is missing on disk). Please fix and restart your IDE (command used: `dotnet build "/Users/admin/Projects/ecierge/PropertyManagement/eCierge.sln" --target:UnoDumpTargetFrameworks "-p:UnoDumpTargetFrameworksTargetFile=/var/folders/vj/9t3c5b6d53s7r59gpkqry3hh0000gn/T/tmp412eFh.tmp" --verbosity quiet`)

When uno's "dev-server" starts (a helper process which detects files changes on disk to trigger hot-reload), we build your solution to determine few information like target frameworks, but here it failed to do so. Usually it's because your solution is in an invalid state.

Could you open a terminal, navigate to the solution's folder (/Users/admin/Projects/ecierge/PropertyManagement/) and run the command:

dotnet build "/Users/admin/Projects/ecierge/PropertyManagement/eCierge.sln" --target:UnoDumpTargetFrameworks "-p:UnoDumpTargetFrameworksTargetFile=/Users/admin/Projects/ecierge/PropertyManagement/target-frameworks.txt"

And then send us the output of the command and the content of the file "/Users/admin/Projects/ecierge/PropertyManagement/target-frameworks.txt" ?

@dr1rrb
Copy link
Member

dr1rrb commented Dec 19, 2024

Also @VolodymyrZaburmekha and @DevTKSS : a new version of the SDK 5.5.56 has been published yesterday, it might fix your issues. Please make sure to update first, thanks.

@sasakrsmanovic
Copy link
Author

any luck @VolodymyrZaburmekha @DevTKSS with the new SDK?

@DevTKSS
Copy link

DevTKSS commented Dec 22, 2024

New release? Actually i did not get time to proceed till now

@VolodymyrZaburmekha
Copy link

@sasakrsmanovic, @dr1rrb
I tried the new SDK, unfortunately, it didn't fix the problem

I guess, the problem might be related to how uno handles solution filter files (.slnf) files.

At least on my machine, the solution file(.sln) that Uno is trying to use is failing to build. This solution file also contains projects that are not required for building the Uno app.
Because there are a lot of projects there, we also have a .slnf file which is linked to the broken .sln file and intended to filter out not-needed projects and speed up project loading.

The build of the .slnf file is successful, the build of .sln is not.

In VS Code I open the .slnf file, but in the HotReload logs there is info only about the solution file and there is no info about the solution filter file, so I guess it doesn't take into consideration the .slnf file.

Will try to fix this .sln file and check again

Here is the content of target-frameworks.txt:

net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-windows10.0.26100
net9.0
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-desktop
net9.0-desktop
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-desktop
net9.0-desktop
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-desktop
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm
net9.0-android
net9.0-ios
net9.0-maccatalyst
net9.0-windows10.0.26100
net9.0
net9.0-desktop
net9.0-browserwasm

Thanks

@xperiandri
Copy link

xperiandri commented Dec 22, 2024

Nothing there. 5.5.56 no effect

This is our log

The specified framework 'Microsoft.WindowsDesktop.App' is not present in the previously loaded runtime.
dbug: Uno.UI.Runtime.Skia.Wpf.Rendering.WpfRendererProvider[0]
      Validating  rendering
trce: Uno.UI.Runtime.Skia.Wpf.Rendering.OpenGLWpfRenderer[0]
      OpenGL Version: 4.6.14802 Compatibility Profile Context 21.40.18.15 30.0.14018.15002
dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with PointerActivated state.
dbug: Uno.UI.HotDesign.MessageBroker[0]
      Registering handler: 'RemoteControlService (LicenseResponseMessage)'
dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with CodeActivated state.
dbug: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
      ProjectConfigurationAttribute=C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Console.App.csproj, Paths=59
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Presentation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Models
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Options
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Platforms\Desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Serialization
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Services\Caching
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\Services\Endpoints
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\App\obj\Debug\net8.0-desktop\unoresizetizer
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Components
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Dialogs
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Layouts
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Presentation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Presentation\Assets
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Presentation\Assets\Types
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Presentation\Assets\Types\Digital
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Presentation\Building
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Presentation\MakesAndModels
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\Navigation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\TemplateSelectors
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Construction\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Management\Components
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Management\Dialogs
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Management\Presentation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Management
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Management\Navigation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\Management\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Components
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Controls
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Dialogs
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Presentation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Presentation\EditStaffMember
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Styles
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Themes
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Behaviors
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Converters
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Markup
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Navigation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\Uno
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Console\UI\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Controls
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Controls\Themes
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Controls\Behaviors
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Controls\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\UI
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\AttachedProperties
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\Extensions
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\NavigationScope
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\Navigation
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\Navigators
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\Routing
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\SystemIntegration
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\Ecierge.Uno.Navigation\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\OpenIddict.Client.UnoTokenPersistence
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
        - C:\Users\Andrii\Dev\eCierge\PropertyManagement\Ecierge.Uno\OpenIddict.Client.UnoTokenPersistence\obj\Debug\net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
      ServerMetadataUpdates Enabled:False DebuggerAttached:True BuildingInsideVS: True unorid: Skia
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
      Partial Hot Reload Enabled:False unoRuntimeIdentifier:Skia targetFramework:net8.0-desktop buildingInsideVisualStudio:net8.0-desktop debuggerAttached:True IsIssue93860Fixed:False
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
      XamlReader Hot Reload Enabled:False targetFramework:net8.0-desktop
trce: Uno.UI.RemoteControl.HotReload.ClientHotReloadProcessor[0]
      Metadata Updates runtime capabilities: Baseline AddMethodToExistingType AddStaticFieldToExistingType AddInstanceFieldToExistingType NewTypeDefinition ChangeCustomAttributes UpdateParameters GenericUpdateMethod GenericAddMethodToExistingType GenericAddFieldToExistingType
trce: Uno.UI.HotDesign.MessageBroker.MessageBrokerRegistration[0]
      RemoteControlService sending message: 'ProcessorsDiscovery'
trce: Uno.UI.HotDesign.MessageBroker.MessageBrokerRegistration[0]
      RemoteControlService sending message: 'AnalyticsEventMessage'
warn: Uno.UI.HotDesign.MessageBroker[0]
      Error thrown processing message - Method not found: 'System.IO.MemoryStream Microsoft.IO.RecyclableMemoryStreamManager.GetStream()'.
      System.MissingMethodException: Method not found: 'System.IO.MemoryStream Microsoft.IO.RecyclableMemoryStreamManager.GetStream()'.
         at Uno.UI.RemoteControl.Helpers.WebSocketHelper.SendFrame(WebSocket webSocket, Frame frame, CancellationToken ct)
         at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
         at Uno.UI.RemoteControl.Helpers.WebSocketHelper.SendFrame(WebSocket webSocket, Frame frame, CancellationToken ct)
         at Uno.UI.RemoteControl.RemoteControlClient.SendMessage(IMessage message) in /__w/1/s/src/Uno.UI.RemoteControl/RemoteControlClient.cs:line 706
         at Uno.UI.HotDesign.MessageBroker.SendToServerHandler.ProcessMessage(IHotDesignMessage message)
         at Uno.UI.HotDesign.MessageBroker.HandlerQueue.<ProcessQueue>b__19_0()
trce: Uno.UI.Runtime.Skia.Wpf.Rendering.OpenGLWpfRenderer[0]
      Recreate render surface 2528x1512 colorType:Rgba8888 sample:0
dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with Deactivated state.

@xperiandri
Copy link

xperiandri commented Dec 22, 2024

How to filter out events correctly?
These make no effect

// Uno Platform namespace filter groups
// Uncomment individual methods to see more detailed logging
//// Generic Xaml events
//logBuilder.XamlLogLevel(LogLevel.Debug);
//// Layout specific messages
//logBuilder.XamlLayoutLogLevel(LogLevel.Debug);
//// Storage messages
//logBuilder.StorageLogLevel(LogLevel.Debug);
//// Binding related messages

only these work

.AddFilter("Microsoft.UI", LogLevel.Critical)
.AddFilter("CommunityToolkit.WinUI", LogLevel.Critical)
.AddFilter("Uno.Extensions", LogLevel.Critical)
.AddFilter("Uno.Toolkit.UI", LogLevel.Critical)
.AddFilter("Uno.UI.Xaml", LogLevel.Critical)
.AddFilter("Uno.UI.Xaml.Core", LogLevel.Critical)
.AddFilter("Uno.UI.HotDesign", LogLevel.Trace)
.AddFilter("Windows.UI.Core", LogLevel.Critical)

@xperiandri
Copy link

@VolodymyrZaburmekha

The build of the .slnf file is successful, the build of .sln is not.

this is our solution issue

@xperiandri
Copy link

xperiandri commented Dec 22, 2024

When click the Settings button

dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with PointerActivated state.
dbug: Uno.UI.HotDesign.MessageBroker[0]
      Registering handler: 'HotReloadStatusView-sender ()'
trce: Uno.UI.HotDesign.MessageBroker.MessageBrokerRegistration[0]
      HotReloadStatusView-sender sending message: 'LaunchAuthenticationPortalMessage'
warn: Uno.UI.HotDesign.MessageBroker[0]
      Error thrown processing message - Method not found: 'System.IO.MemoryStream Microsoft.IO.RecyclableMemoryStreamManager.GetStream()'.
      System.MissingMethodException: Method not found: 'System.IO.MemoryStream Microsoft.IO.RecyclableMemoryStreamManager.GetStream()'.
         at Uno.UI.RemoteControl.Helpers.WebSocketHelper.SendFrame(WebSocket webSocket, Frame frame, CancellationToken ct)
         at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
         at Uno.UI.RemoteControl.Helpers.WebSocketHelper.SendFrame(WebSocket webSocket, Frame frame, CancellationToken ct)
         at Uno.UI.RemoteControl.RemoteControlClient.SendMessage(IMessage message) in /__w/1/s/src/Uno.UI.RemoteControl/RemoteControlClient.cs:line 706
         at Uno.UI.HotDesign.MessageBroker.SendToServerHandler.ProcessMessage(IHotDesignMessage message)
         at Uno.UI.HotDesign.MessageBroker.HandlerQueue.<ProcessQueue>b__19_0()
dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with Deactivated state.
dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with PointerActivated state.
dbug: Windows.UI.Core.CoreWindow[0]
      CoreWindow activating with Deactivated state.

@VolodymyrZaburmekha
Copy link

The build of the .slnf file is successful, the build of .sln is not.

this is our solution issue

I mean maybe because build of .sln is failing it can't do hot reload for some reason

@DevTKSS
Copy link

DevTKSS commented Dec 29, 2024

@xperiandri would also need that information like you, with the event log to follow up this and other things that should not happen... But to check iut the source of that things which might nor be studio i would like to have some nessaging that is telling me. The logger docs is not really helpful on that as you see

@DevTKSS
Copy link

DevTKSS commented Dec 29, 2024

@sasakrsmanovic tryed today, as I said, using 5.54+ and desktop only is not having that issue on my side. But I am a bit confused why now theme switching stoped working using the today latest sdk. Updated and created new app and done exactly same code, theme switching not working with same code. I would have send a video but to my own frustration windows decided to just exit the recording without saving or anything after a tutorial video of about 2 h😭 so... All i could share is the old project where those things are working but (no i did not version up in that project) that is the really bad performance one. Bad performance in that way, you are clicking and have to wait for it to react😅 tomorrow will have to do some other stuff will see if i can do another video. So reading here that the uno app is one of many applications so a slnf file is needed, maybe that is the main issue on this and should not be done with studio as target at this point 🤔😅

@DevTKSS
Copy link

DevTKSS commented Dec 29, 2024

@xperiandri did you try to just dont do that large multi project thing and try if your only target is desktop? As i said: I had this issue with not showing up this settings tab when I targeted windows for example in my case, so i would maybe recommend to try not to target other than this currently recommended one to see if that is Maybe the issue that is the reason for this

@DevTKSS
Copy link

DevTKSS commented Dec 30, 2024

so update from my side: created new project, using desktop AND Windows target just to test, using uno.sdk 5.5.56 in a regular Uno App single project:

  • HotReload Performance: no problem, everything smooth as it should be
  • Settings showing up to be not set? No settings tab issue showing up!
  • Studio Icon showing up and checked to be available (Me beeing in Beta list to meet the requirements for this state): Check, everything fine!
  • Intellisense suggesting WindowsAppSDK Resources, also when "just" targeting Desktop: Check => but would not be check if not including win target thats having that package
  • Studio Performance: really improved from last versions! Quick and smooth as it should!

Issues I am having: (please tell if I should open issue to that, might be listed)

  • deleting things in studio like the stackpanel told from the guide, is not deleting this! resolving in confused Generator engine that is mixing up code where it do not belong!
  • NavigationView Settings is not setable (tryed naming the Page to call "MySettingsPage" which should be fine for naming, but could not be found by codebehind ItemInvoked Event calling
if(args.IsSettingsInvoked ==true)
{
     this.Navigator()?.NavigateRouteAsync(this, "MySettings", Qualifyers.Nested)
}

in studio there is just a textBox to insert something, no idea how Settings could be navigated to using studio? but also no idea with HotReload

@dr1rrb
Copy link
Member

dr1rrb commented Jan 7, 2025

Hey @VolodymyrZaburmekha @xperiandri

So I created an issue for the sln vs slnf file issue (unoplatform/uno#19163). Definitely a valid case that we should support.

Otherwise, you said that

this is our solution issue

Does this means that the settings button is now working as expected or still not? If not, do you see the Uno Platform: Open settings command in the palette?
image

Also does hot-reload is working?

If you an issue with any of those, could you please send me the logs of the "Uno Platform - Hot Reload" output in VS code?

image

@dr1rrb
Copy link
Member

dr1rrb commented Jan 7, 2025

@DevTKSS Glad to hear that HR is now working on your side.

Issues I am having: (please tell if I should open issue to that, might be listed)

deleting things in studio like the stackpanel told from the guide, is not deleting this! resolving in confused Generator engine that is mixing up code where it do not belong!
NavigationView Settings is not setable (tryed naming the Page to call "MySettingsPage" which should be fine for naming, but could not be found by codebehind ItemInvoked Event calling

This is more related to the "Hot design" feature of studio. @nickrandolph might have some tips here.

@xperiandri
Copy link

xperiandri commented Jan 7, 2025

@xperiandri did you try to just dont do that large multi project thing and try if your only target is desktop?

Yes it works from the template.
But I need it to work on my solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd kind/bug Something isn't working tool/Hot Design™ tool/Hot Reload triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

6 participants