mac上通过unity hub安装了unity后,选了PlasticSCM托管,创建项目后,打开就疯狂报一个错误:
CmClientException: The client configuration file "client.conf" contains errors: Root element is missing.
Codice.Client.Common.ClientConfigData.a (System.String A_0, System.Boolean A_1) (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.ClientConfigData.Load (System.String filename) (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.ClientConfig.a (System.String A_0) (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.ClientConfig.Get () (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.PathHelper.a () (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.PathHelper.IsCaseInsensitiveFs () (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.PathHelper.GetPathComparer () (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.FsNodeReaders.WorkspaceWatcherFsNodeReadersCache..ctor () (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Codice.Client.Common.FsNodeReaders.WorkspaceWatcherFsNodeReadersCache..cctor () (at <e8b537aaf85747a79d6726b3ad5aefa2>:0)
Rethrow as TypeInitializationException: The type initializer for 'Codice.Client.Common.FsNodeReaders.WorkspaceWatcherFsNodeReadersCache' threw an exception.
Unity.PlasticSCM.Editor.PlasticApp.SetupFsWatcher () (at Library/PackageCache/com.unity.collab-proxy@1.10.2/Editor/PlasticSCM/PlasticApp.cs:156)
Unity.PlasticSCM.Editor.PlasticApp.InitializeIfNeeded () (at Library/PackageCache/com.unity.collab-proxy@1.10.2/Editor/PlasticSCM/PlasticApp.cs:40)
Unity.PlasticSCM.Editor.Beta.CalculateUserBetaProgramSetting.Execute (System.String unityAccessToken) (at Library/PackageCache/com.unity.collab-proxy@1.10.2/Editor/PlasticSCM/Beta/CalculateUserBetaProgramSetting.cs:42)
Unity.PlasticSCM.Editor.Beta.CalculateUserBetaProgramSetting.RunOnceWhenAccessTokenIsInitialized () (at Library/PackageCache/com.unity.collab-proxy@1.10.2/Editor/PlasticSCM/Beta/CalculateUserBetaProgramSetting.cs:27)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Delegate.DynamicInvoke (System.Object[] args) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:310)
会一直报,上千条那种。 删了unity hub重装也没用。 看到是PlasticSCM的报错,去工程下删掉PlasticSCM相关的文件也不行,尴尬了。 解决办法: 安装PlasticSCM的客户端。 在创建工程的时候选上托管到PlasticSCM,会自动安装客户端,估计我第一次选了,但是客户端没装成功,以后每次我不选,但是工程中也会新建PlasticSCM相关的路径,会自动检测配置文件,没有客户端就没有配置文件,所以疯狂报错,大概这样子吧
|