codus/codelog

Compiling process breaks with invalid YML

Closed this issue · 0 comments

In an example change:

"Deploy Notes":
  - run: `rails db:created`

Breaks compiling process:

 $ codelog release 15.0.0
/Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:377:in `parse': (changelogs/unreleased/20180124172443846_change.yml): found character that cannot start any token while scanning for the next token at line 2 column 20 (Psych::SyntaxError)
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:377:in `parse_stream'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:325:in `parse'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:252:in `load'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:473:in `block in load_file'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:472:in `open'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/psych.rb:472:in `load_file'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:41:in `block in changes_hash'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:40:in `each'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:40:in `inject'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:40:in `changes_hash'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:32:in `block in run'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/fileutils.rb:120:in `chdir'
        from /Users/crivelaro/.rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/fileutils.rb:120:in `cd'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:31:in `run'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/step/version.rb:24:in `run'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/release.rb:9:in `run'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/command/release.rb:5:in `run'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/lib/codelog/cli.rb:18:in `release'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/gems/codelog-0.3.0/bin/codelog:6:in `<top (required)>'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/bin/codelog:23:in `load'
        from /Users/crivelaro/.rvm/gems/ruby-2.4.2@cerc/bin/codelog:23:in `<main>'

A good practice would be show which file is invalid.