guard / guard-spork

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

#<RuntimeError: Application has been already initialized.> #32

Closed cabaret closed 12 years ago

cabaret commented 12 years ago

Hi.

I'm running Guard with guard-spork, guard-cucumber and guard-rspec.

However, it doesn't quite work. It loads spork, then runs my rspec tests but it fails with the following message when it tries starting the cucumber tests:

Exception encountered: #<RuntimeError: Application has been already initialized.>

A full write-up about the issue is on stack overflow; I wasn't quite sure if I should post everything here, again:

http://stackoverflow.com/questions/7591058/guard-with-spork-rspec-and-cucumber-application-has-been-already-initialized

thibaudgg commented 12 years ago

Please can you try the master branch to see if it's working by adding:

gem 'guard-spork', :git => 'git://github.com/guard/guard-spork.git'

to your Gemfile?

cabaret commented 12 years ago

Thanks for the quick reply. I added that to my gemfile and I am now getting another error message:

(druby://127.0.0.1:8989) /Users/joris/.rvm/gems/ruby-1.9.2-p180/gems/spork-0.9.0.rc9/lib/spork/server.rb:47:inwrite': Input/output error - (Errno::EIO)`

http://pastebin.com/GVxFEtQv

thibaudgg commented 12 years ago

Please can you try by launching guard with bundle exec: bundle exec guard

cabaret commented 12 years ago

That seems to have fixed it. I changed around a couple of gems aswell though, so might be the solution. It works now, but I'm not exactly sure how I did it. :(