-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Error
{
"message": "[UnityMCP] Failed to execute editor command: Failed to execute command: Compilation failed:\nwarning CS1685: The predefined type `System.Object' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueType' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Attribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Int32' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.UInt32' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Int64' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.UInt64' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Single' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Double' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Char' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Int16' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Decimal' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Boolean' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.SByte' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Byte' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.UInt16' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.String' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Enum' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Delegate' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.MulticastDelegate' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Array' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Type' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.IEnumerator' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.IEnumerable' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.IDisposable' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.IntPtr' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.UIntPtr' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.RuntimeFieldHandle' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.RuntimeTypeHandle' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Exception' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ParamArrayAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.OutAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ObsoleteAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.DllImportAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.MethodImplAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.MarshalAsAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.InAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.IndexerNameAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Diagnostics.ConditionalAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.CLSCompliantAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Security.Permissions.SecurityAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.RequiredAttributeAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.GuidAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyCultureAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyVersionAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyAlgorithmIdAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyFlagsAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyFileVersionAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyInformationalVersionAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.ComImportAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.CoClassAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.AttributeUsageAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.OptionalAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Security.UnverifiableCodeAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.DefaultCharSetAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.TypeForwardedToAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.FixedBufferAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.CompilerGeneratedAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.InternalsVisibleToAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Diagnostics.DebuggerHiddenAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.UnsafeValueTypeAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Diagnostics.DebuggerBrowsableAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Diagnostics.DebuggerStepThroughAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Diagnostics.DebuggableAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Security.Permissions.HostProtectionAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.ExtensionAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.AsyncStateMachineAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.TupleElementNamesAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.AsyncMethodBuilderAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.IsReadOnlyAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.IsByRefLikeAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.DefaultMemberAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.DecimalConstantAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.StructLayoutAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.InteropServices.FieldOffsetAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyProductAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyCompanyAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyCopyrightAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Reflection.AssemblyTrademarkAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.CallerMemberNameAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.CallerLineNumberAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Runtime.CompilerServices.CallerFilePathAttribute' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.TypedReference' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ArgIterator' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.Generic.IEnumerable' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.Generic.IList' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.Generic.IReadOnlyList' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.Generic.ICollection' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Collections.Generic.IReadOnlyCollection' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Nullable' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Threading.Tasks.Task' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Threading.Tasks.Task' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.IFormattable' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.FormattableString' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.ValueTuple' is defined multiple times. Using definition from `mscorlib.dll'\nThe predefined type `System.Span' is defined multiple times. Using definition from `mscorlib.dll'\nUnreachable code detected\n at UnityMCP.Editor.UnityMCPConnection.ExecuteEditorCommand (System.String commandData) [0x000b7] in C:\\Users\\hiroga\\AppData\\Local\\VRChatCreatorCompanion\\VRChatProjects\\MCP-World\\Assets\\UnityMCPPlugin\\Editor\\UnityMCPConnection.cs:298 ",
"stackTrace": "UnityEngine.Debug:LogError (object)\nUnityMCP.Editor.UnityMCPConnection:ExecuteEditorCommand (string) (at Assets/UnityMCPPlugin/Editor/UnityMCPConnection.cs:304)\nUnityMCP.Editor.UnityMCPConnection:HandleMessage (string) (at Assets/UnityMCPPlugin/Editor/UnityMCPConnection.cs:249)\nUnityMCP.Editor.UnityMCPConnection/<StartReceiving>d__27:MoveNext () (at Assets/UnityMCPPlugin/Editor/UnityMCPConnection.cs:224)\nUnityEngine.UnitySynchronizationContext:ExecuteTasks ()\n",
"logType": "Error",
"timestamp": "2025-03-18T14:22:20.7060315Z"
}
Environment
- Windows 11
- Unity 2022.3.22f1
How to fix
// Remove below code
// typeof(object).Assembly.Location, // Add mscorlib
Metadata
Metadata
Assignees
Labels
No labels