FastScriptReload
FastScriptReload copied to clipboard
FSR Compilation error
Hello. We are developing with Unity 2022(Intel Version) on Mac OS (Silicon) I'm getting the error below: Is there any solution?
FSR: Compilation error: temporary files were not removed so they can be inspected:
UnityEngine.Logger:Log (UnityEngine.LogType,object)
ImmersiveVrToolsCommon.Runtime.Logging.LoggerScoped:LogInternal (UnityEngine.LogType,object)
ImmersiveVrToolsCommon.Runtime.Logging.LoggerScoped:LogError (object)
FastScriptReload.Editor.Compilation.DotnetExeDynamicCompilation:Compile (System.Collections.Generic.List1<string>,ImmersiveVRTools.Runtime.Common.UnityMainThreadDispatcher) (at Assets/FastScriptReload/Scripts/Editor/Compilation/DotnetExeCompilator.cs:105) FastScriptReload.Editor.Compilation.DynamicAssemblyCompiler:Compile (System.Collections.Generic.List1
FSR: Error when updating files: 'ABCDE.cs', System.InvalidCastException: Specified cast is not valid.
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitIncompleteMember (Microsoft.CodeAnalysis.CSharp.Syntax.IncompleteMemberSyntax node) [0x00026] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.Syntax.IncompleteMemberSyntax.Accept[TResult] (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor1[TResult] visitor) [0x00000] in <7fb80e7e71474ba9a2b7085379c47dd6>:0 at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit (Microsoft.CodeAnalysis.SyntaxNode node) [0x0001c] in <7fb80e7e71474ba9a2b7085379c47dd6>:0 at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode] (TNode node) [0x00000] in <7fb80e7e71474ba9a2b7085379c47dd6>:0 at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode] (Microsoft.CodeAnalysis.SyntaxList1[TNode] list) [0x00017] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitClassDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node) [0x0007d] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
We'd need to look at the generated file / original - so it can be recreated.
You're likely hitting one of the limitations.
If you downoad latest commit and use it instead - there's a better tool to report issues there, it'll give you error and options on how to fix.

If all else fails it'll allow you to easily create support pack with all that's needed to troubleshoot. Please send it here (feel free to adjust the code if you don't want to share, it's mainly code structure that's important)
Thank for your reply. But I can't find the menu 'Error - Inspect' Now I use below version.
'https://github.com/handzlikchris/FastScriptReload/releases/download/1.4-rc1/Fast.Script.Reload.unitypackage'
Is there any solution?!
you can update to new version and recreate