Have you run into this error while trying to update your plugins from the legacy-style Perl format to a brand-spanking-new YAML layout, only to find that you can’t seem to figure out just what the problem is? Spending hour after hour troubleshooting and still getting that annoying message and it just won’t go away?
Look no further, because this one is easy. Well, sort of. You do have to look a little bit, but you actually are not missing a semicolon or a brace or anything along those lines. In fact, it might be a little hard for you to find, you just have to know where to look.
The problem is that YAML is very specific about spacing. Very specific, in fact. You need to make sure that your lines are spaced, not tabbed, and that should take care of your problem.
What is difficult to troubleshoot is if your tabs take up the same amount of spaces – that can make this one tough to track down. If you use an editor like UltraEdit, you might have a function that reads something like Convert Tabs to Spaces. Most editors have them – but this is a great function to help with this particular error. Get rid of those tabs, change them to spaces, and you should be ready to go.