handzlikchris / handzlikchris/FastScriptReload
FSR Compilation error
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 2.2k
- Fork
- 167
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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,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.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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các vị trí trong stack trace tại Assets/FastScriptReload/Scripts/Editor/Compilation/DotnetExeCompilator.cs:105, DynamicAssemblyCompiler.cs:23 và FastScriptReloadManager.cs:367. Tái hiện lỗi trong Unity 2022 trên Apple Silicon, kiểm tra các tệp tạm thời còn được giữ lại và CSharpSyntaxRewriter InvalidCastException, đồng thời xác nhận rằng quá trình biên dịch các tệp đã thay đổi hoàn tất mà không có các lỗi được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, macos, unity
- Lĩnh vực
- devtools, game-dev
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100