This is the full error I am getting when doing a simple:
$ rails generate
Users/localuser/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/psych.rb:205:in `parse': (): could not find expected ':' while scanning a simple key at line 18 column 3(Psych::SyntaxError)
Any ideas whats going on?
My system:
This an extract of the psych.rb file mentioned in the error
#See Psych::Nodes for more information about YAML AST.
def self.parse_stream yaml, filename = nil, &block
if block_given?
parser = Psych::Parser.new(Handlers::DocumentStream.new(&block))
parser.parse yaml, filename
else
parser = self.parser
parser.parse yaml, filename
parser.handler.root
end
end
This error usually appears if you have a syntax error in your YAML file(s).
I had this error when I had a tab instead of whitespace in the yaml file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With