site/src/helpers.rb:commit_count causes build-website failures
Reported by Nicolas Dumazet | November 24th, 2009 @ 01:22 PM
Trace:
rake build-website
(in /path/to/amp/site)
Building /index
Building /learn/index
Building /get/index
Building /about/performance
Building /about/index
Building /about/workflows
Building /about/commands
Building /about/ampfile
Building /contribute/index
rake aborted!
undefined method `+' for nil:NilClass
/path/to/amp/site/Rakefile:16
(See full trace by running task with --trace)
Full trace:
undefined method `+' for nil:NilClass
./src/helpers.rb:85:in `commit_count'
(haml):61:in `render'
/var/lib/gems/1.8/gems/haml-2.2.14/lib/haml/engine.rb:169:in `render'
/var/lib/gems/1.8/gems/haml-2.2.14/lib/haml/engine.rb:169:in `instance_eval'
/var/lib/gems/1.8/gems/haml-2.2.14/lib/haml/engine.rb:169:in `render'
./src/helpers.rb:15:in `render'
/path/to/amp/site/Rakefile:16
/path/to/amp/site/Rakefile:14:in `open'
/path/to/amp/site/Rakefile:14
/path/to/amp/site/Rakefile:12:in `each'
/path/to/amp/site/Rakefile:12
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in `each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1881:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in `run'
/usr/bin/rake:28
On Linux. Let me know what other information you would need.
Comments and changes to this ticket
-

Michael J. Edgar November 25th, 2009 @ 08:33 AM
- Assigned user set to Michael J. Edgar
- State changed from new to open
Ah, I know what the problem here is. The commit_count helper relies on an additional method I've added in my ~/.amprc. I'll move it to the project's ampfile.rb, and see if this bug goes away.
Thanks for reporting it, Nicolas!
-

Michael J. Edgar November 25th, 2009 @ 08:46 AM
- State changed from open to resolved
This should be resolved as of rev #70. Please re-open if you're still having trouble!
Thanks, Nicolas!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Rethink Version Control.- http://amp.carboni.ca/
Amp aims to put control of version-control software in your hands as a developer. The entire system is written in Ruby (with C extensions to improve performance), and aims to implement all major VCS's in Ruby. Currently, Mercurial is implemented.
Other features:
Commands are first-class members of the system - drop in an "Ampfile" in your repository, and you can add commands to amp in the same manner you add commands to rake (only with far, far more power!)
Documentation is one of our biggest priorities. We require all methods to be documented - even comically simple ones.
Heavy testing.
Multiple "workflows" - use git's commands to power a mercurial repository.
Add hooks/callbacks in minutes.
People watching this ticket
Referenced by
-
15
pure ruby `rake test` fails
A bunch of errors. After previous exploration in similar ...