hecomi / uREPL

In-game powerful REPL environment for Unity3D.
http://tips.hecomi.com/entry/2015/12/05/003000
MIT License
551 stars 54 forks source link

Errors using NET 4.6 #9

Closed EnricoMonese closed 6 years ago

EnricoMonese commented 7 years ago

Using the new NET 4.6 in Unity 2017 produces errors on runtime Maybe a newer Mono.CSharp dll is needed schermata 2017-08-27 alle 16 57 34

NullReferenceException: Object reference not set to an instance of an object Mono.CSharp.PredefinedAttribute.Resolve (System.Boolean canFail) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.TypeManager.IsThisOrFriendAssembly (System.Reflection.Assembly assembly) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.Namespace.RegisterExternalExtensionMethodClass (System.Type type) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.RootNamespace.RegisterExtensionMethodClass (System.Type t) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) (at <4e00b9119e4142deb005b807dc024965>:0) Mono.CSharp.Evaluator.ReferenceAssembly (System.Reflection.Assembly a) (at <4e00b9119e4142deb005b807dc024965>:0) uREPL.Evaluator.ReferenceAllAssemblies () (at Assets/uREPL/Scripts/Core/Evaluator.cs:50) uREPL.Evaluator.Initialize () (at Assets/uREPL/Scripts/Core/Evaluator.cs:36) uREPL.Main.Awake () (at Assets/uREPL/Scripts/Core/Main.cs:14)

NullReferenceException: Object reference not set to an instance of an object uREPL.Window.get_parameters () (at Assets/uREPL/Scripts/Gui/Window/Window.cs:25) uREPL.CompletionView.UpdateAnnotation () (at Assets/uREPL/Scripts/Gui/Window/CompletionView.cs:117) uREPL.CompletionView.Update () (at Assets/uREPL/Scripts/Gui/Window/CompletionView.cs:100)

hecomi commented 6 years ago

Sorry for my late reply..., and thank you for the reporting. I've just started investigating how to fix this problem.

hecomi commented 6 years ago

v0.5.0 supports .NET 4.6 now: https://github.com/hecomi/uREPL/releases/tag/v0.5.0