spork on windows7-x64/ruby1.9.2p0?

I can't seen to find a viable way to get spork running on windows7-x64/ruby1.9.2p0:

gem install spork


ERROR:  Error installing spork:
ERROR: Failed to build gem native extension.




C:/Ruby192/bin/ruby.exe mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing dependencies based off of your operating system


rake RUBYARCHDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib RUBYLIBDIR=C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib
C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:340:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception)
from C:/Ruby192/bin/rake:19:in `<main>'




Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4 for inspection.
Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/spork-0.8.4/ext/gem_make.out


So I tried "plan B":

gem install milhouse-spork
gem install win32-process

Installs fine, but:

spork rspec

Fails with a dialog saying "The program can't start because msvcrt-ruby18.dll is missing from your computer"...

So bottom line, I am spork-less!

BTW, I'm using RM 3.0beta and building native extensions with the rubyinstaller devkit (I tried both devkit versions).

Any ideas?



4 comments
Comment actions Permalink

Progress!  I removed the

rake.gemspec
file and now can successfully install
spork
.  Thanks!  I can successfully start the spork drb server, see it spool up two instances and wait patiently for jobs.  I've also bootstrapped my
spec_opts
as usual.

Alas, this exposes the next problem (possibly operator error).  Whenever I try to run any of my specs from Rubymine using the new drb server, I see this:

C:\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Ruby192\bin/rake spec --drb
Testing started at 12:33 PM ...
Empty test suite.  

Process finished with exit code 1


Note the
--drb
switch above.  I added it to the spec config, but I also tried editing
.rspec
and adding
--drb
there as an alternative.  Neither worked.  If I leave it off altogether, it runs the spec normally (without drb) which of course fails when trying to open the database locally - which is in use by spork, as you would expect.

Interestingly, I can get autotest to work:


bundle exec autotest



Successfully runs tests against the drb server.  But I cannot run RubyMine specs - they always say empty test suite and return immediately.

Thougths?  I am sooooo excited to be close to using spork I can almost taste it...
0
Comment actions Permalink

Alas, this exposes the next problem (possibly operator error).  Whenever I try to run any of my specs from Rubymine using the new drb server, I see this:

C:\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Ruby192\bin/rake spec --drb
Testing started at 12:33 PM ...
Empty test suite.  

Which RubyMine version do you use? Looks like http://youtrack.jetbrains.net/issue/RUBY-6799.

0
Comment actions Permalink

I believe it was 3.0rc1 but it was awhile ago and I gave up on spork for the time being.  Feel free to close this if no one else still complains and I'll re-submit when I get to test again with the latest RM 3.0x

Thanks.

0

Please sign in to leave a comment.