maui icon indicating copy to clipboard operation
maui copied to clipboard

Hot Reload not working

Open ssbssb-cmd opened this issue 2 years ago • 4 comments

Description

Hot reload not working - MAUI .net 8 on visual studio mac 2022. It is enabled in the settings and when it is running, VS is showing "XAML Hot Reload connected" in the bottom task bar. Making a change to the XAML and then saving does nothing - no error file nothing.

This is the same on iOS and Android.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

Not at the moment 

Relevant log output

No response

ssbssb-cmd avatar Dec 30 '23 15:12 ssbssb-cmd

Log from the XAML Hot Reload pad:

[15:00:30] .NET Project references .NET MAUI. [15:00:30] Starting Hot Reload session... [15:00:38] XAML Hot Reload initializing... [15:00:44] Hot Reload: Initialized Agent. [15:00:47] XAML Hot Reload Connected and Ready. [15:11:45] .NET Project references .NET MAUI. [15:11:45] Starting Hot Reload session... [15:11:50] XAML Hot Reload initializing... [15:11:55] Hot Reload: Initialized Agent. [15:11:58] XAML Hot Reload Connected and Ready.

Made a change to the XAML, pressed Save, nothing happens

ssbssb-cmd avatar Dec 30 '23 15:12 ssbssb-cmd

I made an intentional error in the XAML to see if that gets picked up - which it does, but when i correct it, the changes are still not applied.

[16:06:06] Hot Reload changes cannot be applied due to these errors in the XAML: /App/MainPage.xaml(18,35): White space is missing. /App/MainPage.xaml(18,35): There is a missing equals ("=") character.

[16:06:13] Hot Reload changes cannot be applied due to these errors in the XAML: /App/MainPage.xaml(18,35): White space is missing. /App/MainPage.xaml(18,35): There is a missing equals ("=") character.

ssbssb-cmd avatar Dec 30 '23 16:12 ssbssb-cmd

Thanks for the issue report @ssbssb-cmd! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

ghost avatar Jan 01 '24 03:01 ghost

Hot Reload tooling is maintained by Visual Studio, so you should file it there. It can't be addressed in this repo.

drasticactions avatar Jan 01 '24 03:01 drasticactions