Update from Unity 4.2.2 to 4.5 failed

This is at least the 8th time I try to update from the old version 3.2.5.1 we had in Unity 4.2.2 to the new version.
This time, i tried with Unity 4.5.1 and 3.4.0.6, and this time too, it fails.
I’m using the free version of your lib, but I also bought the pro version.

Here’s what I do:

  1. open project in Unity 4.2.2 and delete all pathfinding files
  2. save and exit
  3. commit and push
  4. open project in Unity 4.5.1 (or 4.3.4 during my earlier attempts)
  5. import new pathfinding package
  6. move the AStarPathfindingProject folder from top level to /Pathfinding/
  7. rescan graph, clear cache, etc.
  8. save and exit
  9. commit and push

Then, if a friend of mine tries to pull what I did, he gets error.
So I tried doing this.
10) delete everything
11) pull
12) open project in Unity 4.5.1 (or 4.5.4)

And then I get a load of errors too. Here they are

2014 06 08 01 13 09

Here’s the text of 2 errors that are too long to be completely displayed in the image

Assets/Pathfinding/AstarPathfindingProject/Core/Serialization/JsonConverters.cs(3,33): error CS0234: The type or namespace name JsonFx' does not exist in the namespace Pathfinding.Serialization’. Are you missing an assembly reference?

Assets/Pathfinding/AstarPathfindingProject/Core/Serialization/JsonConverters.cs(97,38): error CS0246: The type or namespace name `JsonConverter’ could not be found. Are you missing a using directive or an assembly reference?

And I still get them when I close and open a second time

2014 06 08 01 13 42

Here’s my gitignore file, in case that could be the problem

===============

Unity generated

===============

SheepDefender/Temp/
SheepDefender/Obj/
SheepDefender/UnityGenerated/
SheepDefender/Library/

=====================================

Visual Studio / MonoDevelop generated

=====================================

ExportedObj/
*.booproj
*.csproj
*.pidb
*.suo
*.sln
*.unityproj
*.user
*.userprefs

============

OS generated

============

.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

EDIT: here’s the warning I get when doing step 5) import new pathfinding package

Trying to load data from an older version of the A* Pathfinding Project
Current version: 3.4.0.6 Data version: 3.2.5.1
This is usually fine, it just means you have upgraded to a new version.
However node data (not settings) can get corrupted between versions, so it is recommendedto recalculate any caches (those for faster startup) and resave any files. Even if it seems to load fine, it might cause subtle bugs.

UnityEngine.Debug:LogWarning(Object)
Pathfinding.Serialization.AstarSerializer:OpenDeserialize(Byte[]) (at Assets/Pathfinding/AstarPathfindingProject/Core/Serialization/JsonSerializer.cs:449)
c__AnonStorey2:<>m__2(Boolean) (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2277)
AstarPath:ProcessWorkItems(Boolean) (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:796)
AstarPath:PerformBlockingActions(Boolean, Boolean) (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:702)
AstarPath:FlushWorkItems() (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:936)
AstarPath:AddWorkItem(AstarWorkItem) (at Assets/Pathfinding/AstarPathfindingProject/Core/AstarPath.cs:759)
AstarPathEditor:DeserializeGraphs(Byte[]) (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2275)
AstarPathEditor:DeserializeGraphs() (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2270)
AstarPathEditor:LoadGraphs() (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:2221)
AstarPathEditor:OnEnable() (at Assets/Pathfinding/AstarPathfindingProject/Editor/AstarPathEditor.cs:223)

Hi

I am not really sure why it happens (your gitignore file looks correct). But somehow you are not pushing the Assets/AstarPathfindingProject/Plugins/**/*.dll files.

The warning that you get is nothing to worry about, in fact, the warning itself says so.

No idea where that extra gitignore would be. I didn’t think there was a global one.

Yeah, I think that’s a unity problem.

Thank you! For some reason, the dlls were ignored. I had to add them with add -f (force) and that did the trick. I guess there may be some kind of hidden global gitignore file coming with Git for Windows. Any idea what that may be?

2014 06 14 18 29 25 MINGW32 c Users Agostino Do

BTW thee is a little strange problem. When I’m importing the unitypackage file, if I deselect the ExampleScenes folder, the import goes in a loop and then fails. Here’s the error

2014 06 14 17 38 00

I guess it’s a Unity problem, because if I import everything first and then delete that folder, everything goes fine.

I found the global gitignore, it’s saved in
C:\Users\Agostino\Documents\gitignore_global.txt

And indeed it had *.dll in it.

And the global git config is saved in
C:\Users\Agostino\.gitconfig

with options such as autocrlf, which I set to false