
rake gems throws error if 'echoe' gem is not installed
Reported by Umair Siddique | November 17th, 2008 @ 08:44 PM
If echoe gem is not installed, the authlogic (and as well as searchlogic) gems fail in "rake gems" call.
Pretty obvious, I'm on Windows :)
C:\Users\Umair\Documents\NetBeansProjects\testproject>rake gems (in C:/Users/Umair/Documents/NetBeansProjects/testproject) - [I] authlogic rake aborted! You have a nil object when you didn't expect it! The error occurred while evaluating nil.dependencies
(See full trace by running task with --trace)
C:\Users\Umair\Documents\NetBeansProjects\testproject>rake
gems --trace (in
C:/Users/Umair/Documents/NetBeansProjects/testproject)
Invoke gems (first_time) Invoke gems:base
(first_time) Execute gems:base Invoke environment
(first_time) Execute environment Execute gems -
[I] authlogic rake aborted! You have a nil object when you didn't
expect it! The error occurred while evaluating nil.dependencies
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/rails/gem_dependency.rb:77:in
de pendencies'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.1/lib/active_support/core_ext/s
ymbol.rb:11:in
send'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.1/lib/active_support/core_ext/s
ymbol.rb:11:in to_proc'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/rails/gem_dependency.rb:80:in
ma
p'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/rails/gem_dependency.rb:80:in
de pendencies'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/tasks/gems.rake:15:in
print_gem_
status'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/tasks/gems.rake:4
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/tasks/gems.rake:3:in
each'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.1/lib/tasks/gems.rake:3
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
call'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
execute'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
execute'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
invoke_with_call_c
hain' c:/ruby/lib/ruby/1.8/monitor.rb:242:in synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_c
hain' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in
invoke'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
invoke_task'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exceptio
n_handling'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in
top_level'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in
run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exceptio n_handling'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in
run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
c:/ruby/bin/rake:19:in load' c:/ruby/bin/rake:19
C:\Users\Umair\Documents\NetBeansProjects\testproject>gem install echoe Successfully installed echoe-3.0.2 1 gem installed Installing ri documentation for echoe-3.0.2... Installing RDoc documentation for echoe-3.0.2...
C:\Users\Umair\Documents\NetBeansProjects\testproject>rake gems (in C:/Users/Umair/Documents/NetBeansProjects/testproject) - [I] authlogic
- [I] activesupport = 2.2.1
- [ ] echoe
- [I] rake = 0.8.3
- [ ] rubyforge >= 1.0.0
- [ ] highline
I = Installed F = Frozen R = Framework (loaded before rails starts)
Comments and changes to this ticket
-
Ben Johnson November 17th, 2008 @ 09:38 PM
- State changed from new to open
Hmm, well the whole reason I went with echoe is to avoid the requiring of a dependency. Hoe does this, which is the whole reason echoe was created. That is strange though, I'll look into an alternative. Thanks for letting me know about this.
-
Ben Johnson November 21st, 2008 @ 07:11 PM
- State changed from open to resolved
I added in an error message that requires echoe be installed if you are trying to run meta tasks. I am not sure why rails is running some of those tasks, but at least now its an option. The alternative is to use hoe which always requires itself, which is a little excessive for those that JUST want to use the library and not run any of the tasks.
-
-
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 ยป
Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.