Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running i18n-tasks health #88

Closed
deepsystm opened this issue Aug 18, 2014 · 2 comments
Closed

Error when running i18n-tasks health #88

deepsystm opened this issue Aug 18, 2014 · 2 comments

Comments

@deepsystm
Copy link

Hi! Some error while runnig

$ i18n-tasks health
i18n-tasks health
/home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/stats.rb:15:in `block in forest_stats': undefined method `length' for 2:Fixnum (NoMethodError)
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:14:in `yield'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:14:in `block in leaves'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:40:in `yield'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:40:in `block in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `yield'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:39:in `depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:42:in `block (2 levels) in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:41:in `block in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `yield'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:39:in `depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:42:in `block (2 levels) in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:41:in `block in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `yield'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:39:in `depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:42:in `block (2 levels) in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:41:in `block in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `yield'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/node.rb:40:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:39:in `depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:42:in `block (2 levels) in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:41:in `block in depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/nodes.rb:13:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:39:in `depth_first'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:8:in `nodes'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/data/tree/traversal.rb:13:in `leaves'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/stats.rb:15:in `each'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/stats.rb:15:in `inject'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/stats.rb:15:in `forest_stats'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/command/commands/health.rb:14:in `health'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/command/commander.rb:38:in `run'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/command/commander.rb:19:in `safe_run'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/bin/i18n-tasks:41:in `block (3 levels) in <top (required)>'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/slop_command.rb:18:in `call'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/lib/i18n/tasks/slop_command.rb:18:in `block (3 levels) in slop_command'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/slop-3.6.0/lib/slop.rb:260:in `call'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/slop-3.6.0/lib/slop.rb:260:in `parse!'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/slop-3.6.0/lib/slop.rb:235:in `parse!'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/slop-3.6.0/lib/slop.rb:65:in `parse!'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/slop-3.6.0/lib/slop.rb:54:in `parse'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/gems/i18n-tasks-0.7.3/bin/i18n-tasks:32:in `<top (required)>'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/bin/i18n-tasks:23:in `load'
        from /home/ds/.rvm/gems/ruby-2.0.0-p247/bin/i18n-tasks:23:in `<main>'

why it can happens?

glebm added a commit that referenced this issue Aug 18, 2014
@glebm
Copy link
Owner

glebm commented Aug 18, 2014

Fixed in v0.7.4!

@glebm glebm closed this as completed Aug 18, 2014
@deepsystm
Copy link
Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants