Skip to content

Psych::SyntaxError: (<unknown>): couldn't parse YAML #22

Description

@petRUShka

When I'm trying to use vim-preview I catch following error:

Error detected while processing function <SNR>77_Preview..preview#show:
line    4:
Psych::SyntaxError: (<unknown>): couldn't parse YAML at line 182 column 9

I think the reason is similar to reason of same rails bug: http://stackoverflow.com/questions/4980877/rails-error-couldnt-parse-yaml. Quote:

The root cause was described on many places and I will summarize it again.
There are two default yaml parser Psych is the new one, the one you should be using. Syck is the old one, its not maintained and dying, its currently used as fall back for when there is no libyaml present (non-linux systems usually).
The important thing is you have some invalid yaml somewhere. It is most probably in your translation files (I had unquoted strings strating with %). Just try loading all your yml files with YAML.load_file on the production box and you will see which one is the broken one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions