Newcircuit 1c8db4401779333389b774086d6390f160bbb49078a0eda577b43dcf5018a77f

Ashley Whetter's Blog

[programming, linux] ++ [stuff]

Social inside twitter icon ee809e0d7c5b2294b7d548e7223909c678d76c5484045ae68ecb7c559cd7fade Social inside google icon dbbc88b746b52525f1e1bd5e2bf44152b2713fb976f7e68b903c2d13e9fbd160 Octocat 1fcbe3003defcb5ee415b3a7aa989bbc724ccf3c446436e848c27437901c6ca2 Social inside rss icon ff8ccbbb13f265afbe3cadba03c838cdbcad75b6f223a7937eab3ee35afc933d Social inside linkedin icon 5f3acefcb096b75afe32a0e0b3d90d1f2c1b374049eb8c1996203225e1ae34ba

Fixing "Unable to parse YAML file" Unity Error

Recently I came across the following error when working on a group Unity3D project:

Unable to parse YAML file: [could not find expected ':'] at line 2

We had no yaml files (that we knew of) and Unity could still build and run the project so this error seemed a bit odd.

It turns out that the error was caused by git adding text to highlight a conflict in some of Unity's .meta files. So fixing the error was just a case of finding the meta files and resolving the conflicts.

I used this ruby script to find the files that needed to be fixed. Just place the script in the root of the Unity project and run it. It'll print the locations of the broken files.

Categories: None