如果在unity编辑器底端出现了这样的报错 字样,你的game进程可能会受到影响
Plastic scm的报错:
CmClientException: The client configuration file "client.conf" contains errors: Root element is missing.
Codice.Client.Common.ClientConfigData.Deserialize (System.String filename, System.Boolean bThrowOnError) (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Codice.Client.Common.ClientConfigData.Load (System.String filename) (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Codice.Client.Common.ClientConfig.InitFromFile (System.String fileName) (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Codice.Client.Common.ClientConfig.Get () (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Unity.PlasticSCM.Editor.FindWorkspace.PathForApplicationPath (System.String path) (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/FindWorkspace.cs:21)
Unity.PlasticSCM.Editor.FindWorkspace.HasWorkspace (System.String path) (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/FindWorkspace.cs:12)
Unity.PlasticSCM.Editor.PlasticPlugin..cctor () (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/PlasticPlugin.cs:55)
Rethrow as TypeInitializationException: The type initializer for 'Unity.PlasticSCM.Editor.PlasticPlugin' threw an exception.
Unity.PlasticSCM.Editor.CollabMigration.CloudProjectId.HasValue () (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/CollabMigration/CloudProjectId.cs:9)
Unity.PlasticSCM.Editor.CollabMigration.MigrateCollabProject.RunOnceWhenAccessTokenAndProjectIdAreInitialized () (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/CollabMigration/MigrateCollabProject.cs:33)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <57799cfc78614a8e9fed14dd59f3901a>:0)
这是由于在使用 Plastic SCM 作为版本控制工具中, client.conf 文件出现了问题,这个文件是用来存储 Plastic SCM 的主要用户偏好的,它位于隐藏文件夹 Users/youruser/.plastic4 (Mac) 或 Users/youruser/appdata/local/plastic4 (windows) 中。
解决方案:
关闭 Unity 编辑器,删除 client.conf 文件,然后重新打开 Unity 编辑器。这样,Unity 编辑器会在下次启动时重新生成 client.conf 文件。
猜你喜欢
网友评论
- 搜索
- 最新文章
- 热门文章