handzlikchris / handzlikchris/FastScriptReload

FSR Compilation error

オープン
#29 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
support
主要言語
C#
スター
2.2k
フォーク
167
PR マージ指標
30日以内にマージされた PR はありません

説明

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.List`1,ImmersiveVRTools.Runtime.Common.UnityMainThreadDispatcher) (at Assets/FastScriptReload/Scripts/Editor/Compilation/DotnetExeCompilator.cs:105)
FastScriptReload.Editor.Compilation.DynamicAssemblyCompiler:Compile (System.Collections.Generic.List`1,ImmersiveVRTools.Runtime.Common.UnityMainThreadDispatcher) (at Assets/FastScriptReload/Scripts/Editor/Compilation/DynamicAssemblyCompiler.cs:23)
FastScriptReload.Editor.FastScriptReloadManager/<>c__DisplayClass45_1:b__2 () (at Assets/FastScriptReload/Scripts/Editor/FastScriptReloadManager.cs:367)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

---

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.CSharpSyntaxVisitor`1[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.SyntaxList`1[TNode] list) [0x00017] in <7fb80e7e71474ba9a2b7085379c47dd6>:0
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitClassDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax node) [0x0007d] in <7fb80e7e71474ba9a2b7085379c47dd6>:0

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with the stack-trace locations in Assets/FastScriptReload/Scripts/Editor/Compilation/DotnetExeCompilator.cs:105, DynamicAssemblyCompiler.cs:23, and FastScriptReloadManager.cs:367. Reproduce the error in Unity 2022 on Apple Silicon, inspect the retained temporary files and the CSharpSyntaxRewriter InvalidCastException, and confirm that changed-file compilation completes without the reported errors.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, macos, unity
領域
devtools, game-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。