JetBrains / resharper-unity

Unity support for both ReSharper and Rider
Apache License 2.0
1.21k stars 131 forks source link

【Crash】the plugin folder dll: JetBrains.Rider.Unity.Editor.Plugin.Repacked casue unity crash #2440

Open WandingPace opened 2 months ago

WandingPace commented 2 months ago

System.MissingMethodException: Method not found: 'UnityEngine.Application.RegisterLogCallback'. at JetBrains.Rider.Unity.Editor.PluginEntryPoint.EnsureInitialised () [0x00000] in :0 at JetBrains.Rider.Unity.Editor.PluginEntryPoint..cctor () [0x00000] in :0 UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogString(LogType, String) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:LogError(Object)

additional information: unity version : 5.6 rider version : 2023.3.2

van800 commented 2 months ago

Try to delete it and reopen Rider, would it install a different version?

WandingPace commented 2 months ago

Try to delete it and reopen Rider, would it install a different version?

no , it still intall the same verison, image , and unity crash still exist.

WandingPace commented 2 months ago

@van800 I've try JetBrains Rider 2022.2.4, crash gone, but error still exist. is it a issue in v2023.3.2

van800 commented 2 months ago

Which Unity version do you have? https://unity.com/releases/editor/archive What OS are you using?

Please double-click that dll, it would open in AssemblyExplorer. Screenshot it there for me please image image

van800 commented 2 months ago

For some reason I can't login in Unity 5.6, so can't fully reproduce the issue.

WandingPace commented 2 months ago

@van800 hi, van I've found the issue is because we strip many Unity Obsolete method, include "UnityEngine.Application.RegisterLogCallback", there's mono compile error cause unity crash.
can I comile the unity plugin myself, is there any document.

van800 commented 2 months ago

Sure, there is https://github.com/JetBrains/resharper-unity/blob/master/CONTRIBUTING.md