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

NaN (FloatDomainError) #24

Closed
nikicat opened this issue Aug 19, 2013 · 2 comments
Closed

NaN (FloatDomainError) #24

nikicat opened this issue Aug 19, 2013 · 2 comments

Comments

@nikicat
Copy link

nikicat commented Aug 19, 2013

I've got such error while trying to index one of my repos:

/usr/lib/ruby/gems/2.0.0/gems/activesupport-2.3.17/lib/active_support/core_ext/float/rounding.rb:19:in `round': NaN (FloatDomainError)
    from /usr/lib/ruby/gems/2.0.0/gems/activesupport-2.3.17/lib/active_support/core_ext/float/rounding.rb:19:in `round_with_precision'
    from /usr/lib/ruby/gems/2.0.0/gems/activesupport-2.3.17/lib/active_support/core_ext/float/rounding.rb:19:in `round_with_precision'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/_activity.haml:85:in `block (2 levels) in singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/_activity.haml:84:in `each'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/_activity.haml:84:in `block in singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/_activity.haml:-9:in `instance_eval'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/_activity.haml:-9:in `singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/_activity.haml:-11:in `__tilt_5168760'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/haml.rb:24:in `evaluate'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/template.rb:15:in `render'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view_data.rb:18:in `render_partial'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/month_of_year.haml:1:in `block in singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/month_of_year.haml:-10:in `instance_eval'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/month_of_year.haml:-10:in `singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/activity/month_of_year.haml:-12:in `__tilt_5168760'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/haml.rb:24:in `evaluate'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/template.rb:13:in `block in render'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/layout.haml:29:in `block in singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/layout.haml:-9:in `instance_eval'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/layout.haml:-9:in `singleton class'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/templates/layout.haml:-11:in `__tilt_5168760'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/haml.rb:24:in `evaluate'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/template.rb:13:in `render'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view.rb:28:in `block (2 levels) in render_authors'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view.rb:27:in `each'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view.rb:27:in `block in render_authors'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view.rb:24:in `each'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view.rb:24:in `render_authors'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/stats_view/view.rb:19:in `render_all'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/generator.rb:6:in `render_all'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/lib/git_stats/cli.rb:26:in `start'
    from /home/nbryskin/.gem/ruby/2.0.0/gems/git_stats-1.0.7/bin/git_stats:11:in `<top (required)>'
    from /home/nbryskin/.gem/ruby/2.0.0/bin/git_stats:23:in `load'
    from /home/nbryskin/.gem/ruby/2.0.0/bin/git_stats:23:in `<main>'
@tomgi
Copy link
Owner

tomgi commented Aug 20, 2013

Could you update your activesupport to >= 3.0 and try again?
If it helps I will set minimum version requirement for it.

@nikicat
Copy link
Author

nikicat commented Aug 21, 2013

yep, it works

@tomgi tomgi closed this as completed Aug 22, 2013
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