Search Unity

Bug "Version Control: Cannot check out files in offline mode"

Discussion in 'Unity Version Control' started by nikescar, Jan 18, 2022.

  1. nikescar

    nikescar

    Joined:
    Nov 16, 2011
    Posts:
    165
    From an EditorWindow, if I try to checkout scriptable objects using:

    Code (CSharp):
    1. if (Provider.enabled)
    2.         {
    3.             Provider.Checkout(assetList, CheckoutMode.Both);
    4.         }
    5.         else
    6.         {
    7.             Debug.LogError(Provider.onlineState.ToString());
    8.         }
    or
    Code (CSharp):
    1. Task t = Provider.Checkout(assetList, CheckoutMode.Both);
    2.         t.Wait();
    Always insist that version control is offline: "Version Control: Cannot check out files in offline mode"

    My computer is online and the Plastic SCM gui built into Unity works just fine.
     
  2. Ryan-Unity

    Ryan-Unity

    Joined:
    Mar 23, 2016
    Posts:
    1,993
    Hi @nikescar, unfortunately, the new Plastic SCM integration from the Version Control package does not support the Provider API at this time. We are currently investigating it as a feature request and will factor it into our roadmap discussions for the year. The team recognizes the value that a public API offers for source control and it is a high priority for the team.
     
  3. nikescar

    nikescar

    Joined:
    Nov 16, 2011
    Posts:
    165
    Okay thanks. Glad to hear it's already on your radar.

    A good stopgap might be to be able to checkout assets in the Project window by right clicking the parent folder and clicking Checkout where it would checkout all the contents of that folder. Otherwise I'm not sure how to deal with custom editor tools that modify many project assets.
     
  4. nikescar

    nikescar

    Joined:
    Nov 16, 2011
    Posts:
    165
    Looks like when editing a prefab the checkout button gives the same error:

    Code (CSharp):
    1. Version Control: Cannot check out files in offline mode
    Using Unity 2019.4.34
     
  5. firelight_jaden

    firelight_jaden

    Joined:
    Aug 9, 2022
    Posts:
    6
    If the Provider API isn't supported, what should we use instead?
     
  6. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    1,062