guard / guard-spork

Guard::Spork automatically manage Spork DRb servers
https://rubygems.org/gems/guard-spork
MIT License
296 stars 58 forks source link

Will not install. #83

Closed gotoAndBliss closed 11 years ago

gotoAndBliss commented 11 years ago

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..

gem install guard-spork Fetching: guard-spork-1.1.0.gem (100%) Successfully installed guard-spork-1.1.0 1 gem installed Installing ri documentation for guard-spork-1.1.0... Installing RDoc documentation for guard-spork-1.1.0... bundle exec guard init spork ERROR: Could not load 'guard/spork' or '~/.guard/templates/spork' or find class Guard::Spork

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.

thibaudgg commented 11 years ago

That's weird, have you also the Spork gem in your Gemfile?

gotoAndBliss commented 11 years ago

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

thibaudgg commented 11 years ago

Can you give me more backlog please?

gotoAndBliss commented 11 years ago

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'

thibaudgg commented 11 years ago

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.

gotoAndBliss commented 11 years ago

Thanks for the help. If I figure anything out, I'll be sure to update.

thibaudgg commented 11 years ago

I wasn't able to reproduce this error, do you have the same error with other guards?