jason2018
Topic Author
Posts: 5
Joined: 21 Aug 2018, 01:30

Unity not being aware of changes in Xaml after checking out on another computer?

21 Aug 2018, 01:50

Hi,

I been working on two different computers and noticed that when I push my code up to git and check it out on my other computer and I click play, my latest changes are not being reflected in Unity?

If I open up the xaml file in blend and update it, and then go back to unity, now Unity will know the file had been changed and reflect changes. Perhaps I am ignoring some file in my .gitignore file that is causing this to happen (perhaps related to unity meta files)?



Wondering if this topic might be related? viewtopic.php?f=3&t=1047
Thanks

Tags:
 
User avatar
jsantos
Site Admin
Posts: 2386
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity not being aware of changes in Xaml after checking out on another computer?

23 Aug 2018, 15:41

Is this happening with the latest stable version (2.1) ? We fixed a lot of things regarding that scenario.
 
User avatar
jsantos
Site Admin
Posts: 2386
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity not being aware of changes in Xaml after checking out on another computer?

21 Jan 2019, 16:33

I tried and tried using this repo but I am unable to reproduce the issue. Could you please provide more information?
 
User avatar
goldsaucer
Posts: 13
Joined: 06 Dec 2018, 17:53

Re: Unity not being aware of changes in Xaml after checking out on another computer?

09 Feb 2019, 11:56

We also still have this problem with 2.1. Usually a re-import of the relevant assets helps.
 
User avatar
jsantos
Site Admin
Posts: 2386
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity not being aware of changes in Xaml after checking out on another computer?

09 Feb 2019, 12:56

The only explanation I can find to this is that the timestamp of the files is not being updated and Unity AssetPostProcessor is not being invoked. I tried and tried with the given repository above and was not able to reproduce the issue. Please, could you verify the date of the files is being updated?
 
nokola
Posts: 185
Joined: 10 Mar 2015, 05:29

Re: Unity not being aware of changes in Xaml after checking out on another computer?

11 Feb 2019, 03:55

I have this problem too and work around it by pressing Ctrl+S in Unity, like so:
1. Change XAML file outside Unity, save
[at this point repository changes are only in XAML file]
2. Go to Unity, Press Ctrl+S in the scene (at that point, Noesis writes down an updates .asset file)
[at this point repository changes are in XAML file and its corresponding .asset file]
3. Check-in both the XAML and .asset file in source control

If you miss step 2, then upon opening the repository on another PC you'll have to do Noesis Reimport All to re-generate the XAML file that didn't get changed in step 2.

Hope that help! I haven't reported it until now since it's not really bugging me that much.
 
User avatar
jsantos
Site Admin
Posts: 2386
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity not being aware of changes in Xaml after checking out on another computer?

11 Feb 2019, 14:55

I see, thanks for the detailed explanation. This is something we fixed in 2.2, now everything is saved to disk whenever the XAML changes.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests