上海古都建筑设计集团,上海办公室装修设计公司,上海装修公司高质量的内容分享社区,上海装修公司我们不是内容生产者,我们只是上海办公室装修设计公司内容的搬运工平台

unity编辑器PlasticSCM报错处理

guduadmin02小时前

unity编辑器PlasticSCM报错处理,fa4045a9673d4fb1812246f0eb1b16a4.png,第1张

如果在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 文件。

 

网友评论