Closed gotoAndBliss closed 11 years ago
That's weird, have you also the Spork gem in your Gemfile?
Yes.
gem 'spork', :git => 'git://github.com/sporkrb/spork.git' gem 'spork-rails'
For good measure, I threw it in both my :test and :development gem groups.
$ gem list | grep spork guard-spork (1.1.0) spork (0.9.0) spork-rails (3.2.0) spork-testunit (0.0.8)
$ gem list | grep guard guard (1.3.0) guard-rails (0.1.0) guard-spork (1.1.0)
$ b guard init spork ERROR: Could not load 'guard/spork' or '~/.guard/templates/spork' or find class Guard::Spork
Can you give me more backlog please?
I wish I could, but this isn't coming from a backlog. It's just the response from the commands since I have not yet gotten it to run correctly for Guard-Spork.
Guard by itself will run correctly with Rails though.
Here is my GuardFile :
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do watch('config/application.rb') watch('config/environment.rb') watch('config/environments/test.rb') watch(%r{^config/initializers/.+.rb$}) watch('Gemfile') watch('Gemfile.lock') watch('spec/spec_helper.rb') { :rspec } watch('test/test_helper.rb') { :test_unit } watch(%r{features/support/}) { :cucumber } end
Then I run guard :
$ b guard
ERROR: Could not load 'guard/spork' or find class Guard::Spork ERROR: no such file to load -- guard/spork ERROR: Invalid Guardfile, original error is: undefined method `new' for nil:NilClass ERROR: No guards found in Guardfile, please add at least one. Guard could not detect any of the supported notification libraries. Guard is now watching at '/Users/trip/Sites/shasta'
Ok, I'll have a look on that issue this week, in the meantime you can copy and paste the template content in your Guardfile.
Thanks for the help. If I figure anything out, I'll be sure to update.
I wasn't able to reproduce this error, do you have the same error with other guards?
Rails 3.0.15 Ruby 1.9.2
In my Gemfile :
group :development do gem "guard" gem "guard-rails"
group :test do gem "guard" gem "guard-rails"
Ran bundle install.
But for good measure..
No .guard directory exists or seems to be created by any of the actions located in the Guard gem or here in Guard-Spork, but I'm assuming one should be.