Skip to content

Mass.print: "comparison of NilClass with String failed" #1

@gmcnaughton

Description

@gmcnaughton

When I try to run Mass.print from rails console (or inside my app), it thinks for a long time and then errors with:

==================================================
 Objects within [] namespace
==================================================
ArgumentError: comparison of NilClass with String failed
    from /Users/gmcnaughton/.rvm/gems/ruby-1.9.3-p194/gems/ruby-mass-0.1.3/lib/mass.rb:58:in `sort'
    from /Users/gmcnaughton/.rvm/gems/ruby-1.9.3-p194/gems/ruby-mass-0.1.3/lib/mass.rb:58:in `print'
    from (irb):1
    from /Users/gmcnaughton/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.12/lib/rails/commands/console.rb:47:in `start'
    from /Users/gmcnaughton/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.12/lib/rails/commands/console.rb:8:in `start'
    from /Users/gmcnaughton/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.12/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Any thoughts? This happens even if Mass.print is the first thin I run in the console. Our codebase is large with a variety of gems, so I'll try to repro with a smaller set. (using ruby-mass 0.1.3)

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