welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 167 forks source link

Expected Key Error #75

Closed coreyallen closed 10 years ago

coreyallen commented 10 years ago

First of all..this is amazing, thanks for woking on this.

I created a move file and tried both SSH and FTP, both times I had the following error

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): did not find expected key while parsing a block mapping at line 12 column 3 (Psych::SyntaxError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'
    from /Library/Ruby/Gems/2.0.0/gems/wordmove-1.1.0/lib/wordmove/deployer/base.rb:56:in `fetch_movefile'
    from /Library/Ruby/Gems/2.0.0/gems/wordmove-1.1.0/lib/wordmove/deployer/base.rb:18:in `deployer_for'
    from /Library/Ruby/Gems/2.0.0/gems/wordmove-1.1.0/lib/wordmove/cli.rb:56:in `push'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/wordmove-1.1.0/bin/wordmove:6:in `<top (required)>'
    from /usr/bin/wordmove:23:in `load'
    from /usr/bin/wordmove:23:in `<main>'
alessandro-fazzi commented 10 years ago

Sounds very strange to me. The error is thrown by the LibYAML wrapper. Sparse ideas:

Any other debug path from other observers?

dondia-lab commented 10 years ago

Hi, I get the message: .rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/psych.rb:205:in `parse': (): did not find expected '-' indicator while parsing a block collection at line 22 column 5 (Psych::SyntaxError)

delphaber commented 10 years ago

Hi

could you try to validate your Movefile against this online service? http://yamllint.com/

Maybe there is a syntax error ;)

alessandro-fazzi commented 10 years ago

I'm closing this one due to loss of feedback.

Anyone feel free to reopen.

Bye

harapeko commented 10 years ago

@delphaber thanks my ploblem is solved!! ✌('ω'✌ )三✌('ω')✌三( ✌'ω')✌

taliesinpenbardd commented 8 years ago

Hey @harapeko, care to share how you did solve your problem ? :)

joelmcdwebworks commented 7 years ago

I had the same problem, but the error is deceptive. Issue was with the indentation of my SSH credentials. To fix, I cleared out the comment "#" plus a space, so you really need to delete "# " before each line in order to fix.

harapeko commented 7 years ago

hi @taliesinpenbardd , i fixed syntax error. :)

rotexhawk commented 6 years ago

For future visitors use the following url to validate your yaml file. It also pinpoints the error. I think this should be added to the docs to avoid situations like this.

https://codebeautify.org/yaml-validator

alessandro-fazzi commented 6 years ago

@rotexhawk I really appreciate your will to give other users suggestions about troubleshooting, but I'd really like if all Wordmove users will start to use the doctor command, which has an integrated and tailored movefile.yml parser/checker.

doctor was introduced in version 2.3.0 and is documented here.

It could need some improvements and therefore is important to point users to use it and eventually to open issues if does not work as expected.

I hope it could be useful also for you :)

Cheers