Textmate 2 alpha problem with .yml yaml file

I have experienced problems with .yml files used in localization files for Rails. The files are somehow corrupt, because Textmate 2 is saving the file with weird codes for spaces/tabs. i have not been able to identify exactly why, but I discovered that the problem was being caused by Textmate because I tried with TextWrangler and it got solved.

Bug info:

TextMate version 2.0-alpha.9443.

 

 ~/Desktop% irb
    2.0.0-p247 :001 > require ‘YAML’
     => true 
    2.0.0-p247 :002 > YAML.load_file(‘en.yml’)
    Psych::SyntaxError: (en.yml): found a tab character that violate intendation while scanning a plain scalar at line 134 column 13
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s