diff --git a/Assets/Tests/Editor/HotReload/HotReloadWorkerReasonTextTests.cs b/Assets/Tests/Editor/HotReload/HotReloadWorkerReasonTextTests.cs index 86b999354d..0a6cf830e5 100644 --- a/Assets/Tests/Editor/HotReload/HotReloadWorkerReasonTextTests.cs +++ b/Assets/Tests/Editor/HotReload/HotReloadWorkerReasonTextTests.cs @@ -336,7 +336,9 @@ private static IEnumerable RenderCases() "The added member's body could not be fully bound in the hot-reload compilation " + "(CS1503: Argument 1: cannot convert); hot reload cannot verify a member it cannot bind, " + "so it is skipped. If the name is declared in a new file, pass that file to --files too " - + "(new files are not selected automatically); run 'uloop compile' only if it still does not bind."); + + "(new files are not selected automatically). If the name is generated at compile time, " + + "for example by a source generator, hot reload cannot see it: run 'uloop compile'. " + + "Also run 'uloop compile' if it still does not bind."); yield return Case( HotReloadWorkerReasonCode.AddedMethodBodyBindsCompiledSignature, new[] { "CS1503: Argument 1: cannot convert", "'Example.Payload'", "'Example.Registry'", "'Assets/Registry.cs'" }, diff --git a/Packages/src/Editor/FirstPartyTools/HotReload/Shared/HotReloadWorkerReasonText.AddedMemberTemplates.cs b/Packages/src/Editor/FirstPartyTools/HotReload/Shared/HotReloadWorkerReasonText.AddedMemberTemplates.cs index 88b855f56c..ba4a3a287a 100644 --- a/Packages/src/Editor/FirstPartyTools/HotReload/Shared/HotReloadWorkerReasonText.AddedMemberTemplates.cs +++ b/Packages/src/Editor/FirstPartyTools/HotReload/Shared/HotReloadWorkerReasonText.AddedMemberTemplates.cs @@ -110,7 +110,9 @@ private static void AddAddedMemberTemplates( "The added member's body could not be fully bound in the hot-reload compilation ({0}); " + "hot reload cannot verify a member it cannot bind, so it is skipped. If the name is " + "declared in a new file, pass that file to --files too (new files are not selected " - + "automatically); run 'uloop compile' only if it still does not bind.", + + "automatically). If the name is generated at compile time, for example by a source " + + "generator, hot reload cannot see it: run 'uloop compile'. Also run 'uloop compile' if " + + "it still does not bind.", 1)); // Why the next step is not worded here: which step works (pass the file, leave it // out, undo the edit and leave it out, or compile) depends on how the file entered the