Search Unity

Feature Request Please run a VCS checkout before writing to MediationAdapterDependencies.xml

Discussion in 'Unity Mediation' started by masterton, Jun 11, 2022.

  1. masterton

    masterton

    Joined:
    Dec 11, 2012
    Posts:
    41
    Could you run a VCS checkout command on MediationAdapterDependencies.xml before writing to it? I understand the modern world is on Git and this won't affect 99% of you, but take pity on us poor fools stuck with Perforce. :)

    Thank you.

    Code (CSharp):
    1. UnauthorizedAccessException: Access to the path "blah\blah\Assets\Editor\MediationAdapterDependencies.xml" is denied.
    2. System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    3. System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    4. (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
    5. System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    6. System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    7. System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    8. System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    9. (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool,System.Text.Encoding)
    10. System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    11. System.IO.File.WriteAllText (System.String path, System.String contents) (at <695d1cc93cca45069c528c15c9fdd749>:0)
    12. Unity.Services.Mediation.Adapters.Editor.AdaptersDependencyGenerator.InstallOverrideAdapters (System.String xmlPath, System.Collections.Generic.List`1[T] adapters) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Adapters/AdaptersDependencyGenerator.cs:357)
    13. Unity.Services.Mediation.Adapters.Editor.AdaptersDependencyGenerator.GetInstalledAdapters (System.String xmlPath, System.Boolean generateXml) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Adapters/AdaptersDependencyGenerator.cs:276)
    14. Unity.Services.Mediation.Adapters.Editor.AdaptersDependencyGenerator.GetInstalledAdapters (System.Boolean generateXml) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Adapters/AdaptersDependencyGenerator.cs:222)
    15. Unity.Services.Mediation.Adapters.Editor.MediationSdkInfo.GetInstalledAdapters (System.Boolean generateXml) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Adapters/MediationSdkInfo.cs:305)
    16. Unity.Services.Mediation.Settings.Editor.MediationAdapterSettings.Refresh () (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Settings/MediationAdapterSettings.cs:93)
    17. Unity.Services.Mediation.Settings.Editor.MediationAdapterSettings.RefreshConfiguredAdNetworks (System.Collections.Generic.List`1[T] adNetworks) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Settings/MediationAdapterSettings.cs:330)
    18. Unity.Services.Mediation.Dashboard.Editor.DashboardClient.OnConfiguredAdNetworksReady (UnityEngine.Networking.UnityWebRequest request, System.Action`1[T] callback) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Settings/Dashboard/DashboardClient.cs:256)
    19. Unity.Services.Mediation.Dashboard.Editor.DashboardClient+<>c__DisplayClass20_1.<GetConfiguredAdNetworksAsync>b__2 (UnityEngine.AsyncOperation _) (at Library/PackageCache/com.unity.services.mediation@0.5.0-preview.5/Editor/Settings/Dashboard/DashboardClient.cs:209)
    20. UnityEngine.AsyncOperation.InvokeCompletionEvent () (at <ca496b8c93454b2f9b9924292c19379f>:0)