Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  5. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  6. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Collab didn't update file contet with file rename

Discussion in 'Unity Collaborate' started by leizzer, Aug 8, 2018 at 6:00 AM.

  1. leizzer

    leizzer

    Joined:
    Jun 26, 2013
    Posts:
    38
    [Disclamer: I don't know if there is an issue tracker for Collab, and I hope someone from Unity fill a ticket for this]

    I was converting my files from Unityscript to C#

    I used https://github.com/Unity-Technologies/unityscript2csharp as a base, then I modified some of them that didn't work out of the box.

    I did that like 2 months ago, I pushed all the changes and continue working locally. In my machine all the files were OK, in C#.

    Today a friend tried to pull my project and all the .cs files contain Unityscript instead of C#

    I still had all the files in good shape locally, but at some point trying to figure out what was going on I did a revert to a previous commit... and surprisingly all .cs files now have Unityscript inside instead of C# and I have no way to recover those changes.

    This is really horrible, why in hell Unity pull from the cloud if I was reverting locally? Why was I able to keep working locally seeing all in C# and Collab didn't noticed it?

    This is really a low punch, I had to change lot of things to make the project work in C# and today I'm almost back to squere one.

    Please review the code from unityscript2csharp as a clue for what went wrong.

    For now I'll go back to Git and don't trust Collab... I can't recommend a VC that in fact, make the things worse.

    It seems to happen when the file change content and name at the same time, for the little information I can see on Collab Time (fragment):

    Code (CSharp):
    1.  
    2. /Assets/Scripts/environment/
    3.  
    4.     renamed AnchorPoint.cs
    5.     renamed AnchorPoint.cs.meta
    6.     added AnchorPoint.js.old
    7.     added AnchorPoint.js.old.meta
     
  2. AdrianoVerona_Unity

    AdrianoVerona_Unity

    Unity Technologies

    Joined:
    Apr 11, 2013
    Posts:
    152
    Hi. I am the author of unityscript2csharp tool.

    I've talked with Collab developers and have been told that this is a known (unrelated to unityscript2csharp) issue and they will follow up as soon as they get more information (AFAIK they are investigating it)

    Adriano
     
  3. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    42
    Hi @leizzer,
    Thank you for reporting this issue.
    I can confirm that this is a recently known issue to the Collaborate development team and is of the highest priority to resolve. As mentioned by @AdrianoVerona_Unity this is unrelated to unityscript2csharp and caused by renaming and editing files external to the Editor in a very particular way causing Collaborate to lose track of the changes.

    Unfortunately, reverting back to a previous version will have lost your local copy of the correct files. I give you my apologies for your loss of work and give you my word that I will chase resolution of this bug constantly until it is fixed.

    If others do experience this issue and believe that their changes are not being picked up by other clients, please make a backup of your work and do the following:
    1. On the workstation with the assets whose changes don’t seem to be syncing across other clients, close Unity
    2. In your Project, navigate to the Library/Collab/ folder within the Project and delete the CollabSnapshot file
    3. Reopen Unity and your Project. This will regenerate your snapshot file and display any missing changes in the Collab Toolbar
    4. Publish these changes
     
  4. leizzer

    leizzer

    Joined:
    Jun 26, 2013
    Posts:
    38
    Thank you guys.

    It's good to know that Collab is going forward because it's a well needed feature.

    Cheers
     
    ollieblanks likes this.