GithubHelp home page GithubHelp logo

Windows Support (Vote) about spork HOT 53 CLOSED

sporkrb avatar sporkrb commented on September 24, 2024
Windows Support (Vote)

from spork.

Comments (53)

hoenth avatar hoenth commented on September 24, 2024

+1

from spork.

nzifnab avatar nzifnab commented on September 24, 2024

Yes please :<

from spork.

jmonteiro avatar jmonteiro commented on September 24, 2024

+1

This really a needed thing to me, since I need to test my features (Cucumber) with Watir/IE :-(

from spork.

jcfischer avatar jcfischer commented on September 24, 2024

+1 - we need this too for a project. I can help (hopefully) with the coding

from spork.

rdp avatar rdp commented on September 24, 2024

+1
The kicker really is that with windows I think you'll need to forward all your stdin/stderr output across TCP sockets back to the host. But it should work :)

from spork.

timcharper avatar timcharper commented on September 24, 2024

This is actually already done (stdin / sterr output over tcp sockets). DRb does some magic to let you do this. (referring to Roger's comment)

I'm really excited to get started on this. I've been very swamped with my preparations for #LSRC though (you have no idea how much work it is to prepare a measly 6 hours worth of training). So... excited to get back to this when I get back.

from spork.

rdp avatar rdp commented on September 24, 2024

Oh nice. I suppose for now windows users can use cygwin--that doesn't help me too much since I use normal Test::Unit tests, but hey, it's one step closer to coding bliss :)
-r

from spork.

kriswill avatar kriswill commented on September 24, 2024

+1 working in windows would be awesome, feature runs are slooow - might have to resort to spec_server for now

from spork.

bhavinkamani avatar bhavinkamani commented on September 24, 2024

+1

from spork.

timcharper avatar timcharper commented on September 24, 2024

Getting much closer. The RunStrategy extraction has been completed, so now one would just need to implement the Magazine RunStrategy and it'll be done!

from spork.

jcfischer avatar jcfischer commented on September 24, 2024

I'll be back at the project next week (although we have switched to JRuby completely) -- and I'll take a look if I can work on this

from spork.

timcharper avatar timcharper commented on September 24, 2024

ok - jruby is on the radar as well. Can be supported via forking strategy using FFI on POSIX systems, and windows sytem via magazine strategy.

from spork.

grosser avatar grosser commented on September 24, 2024

Just a sidenote: If anyone has experience with forking for windows/jruby, the parallel and with it the parallel_specs projects are in need of windows/jruby forking too...

from spork.

pbalduino avatar pbalduino commented on September 24, 2024

plz

from spork.

timcharper avatar timcharper commented on September 24, 2024

@grosser - as far as I know, ruby on windows doesn't support Kernel.fork. You will need to fire up separate processes, and communicate with them.

from spork.

rkoloski avatar rkoloski commented on September 24, 2024

It'd be a huge plus for me and my team as well.

Is it correct to assume that because Kernel.fork is implemented in Ruby, that running Cygwin won't help if Cygwin is pointing to a Win32 Ruby interpreter?

Let me know if/how I can help.

from spork.

cwoodward avatar cwoodward commented on September 24, 2024

Another vote to get this working.

from spork.

timcharper avatar timcharper commented on September 24, 2024

Please see the wiki page: http://wiki.github.com/timcharper/spork/windowssupport

I've outlined what's needed to do, and I've architected spork so this will be possible.

If you're interested in implementing it, I'm happy to offer assistance.

Tim

from spork.

jsuchal avatar jsuchal commented on September 24, 2024

+1

from spork.

Milhouse avatar Milhouse commented on September 24, 2024

+1 Using Windows at work. Hate slow tests :)

from spork.

rdp avatar rdp commented on September 24, 2024

If anybody's adventurous they could try my fork
http://github.com/rdp/spork
which theoretically works with windows (and give me feedback/feature requests...)
-r

from spork.

markj9 avatar markj9 commented on September 24, 2024

+1

from spork.

Milhouse avatar Milhouse commented on September 24, 2024

I added a fork (http://wiki.github.com/Milhouse/spork/) which adds a preliminary "magazine" strategy for Windows. It's certainly a beta, but it does work with both Rspec and Cucumber so far.

from spork.

timcharper avatar timcharper commented on September 24, 2024

Milhouse, Roger Pack, this is awesome! Way to go guys!

from spork.

Zloy avatar Zloy commented on September 24, 2024

+1

from spork.

timcharper avatar timcharper commented on September 24, 2024

merged in!

from spork.

rdp avatar rdp commented on September 24, 2024

I think you could use popen and avoid the MRI dependency (?)

from spork.

timcharper avatar timcharper commented on September 24, 2024

that's a great idea, I was wondering about that. Milhouse, what do you think?

from spork.

jsuchal avatar jsuchal commented on September 24, 2024

Hmm, the newest gemspec file does not include magazine strategy files, please regenerate it a and push a new version to gemcutter since this is unusable at the moment. Anyways I was able to rebuild the gem locally and seems to work well. Thanks.

from spork.

timcharper avatar timcharper commented on September 24, 2024

Paciencia!

:)

It's "merged in", not released yet.

from spork.

jsuchal avatar jsuchal commented on September 24, 2024

Sorry for all the impatient disturbance.

from spork.

Milhouse avatar Milhouse commented on September 24, 2024

It might be a way to let JRuby join the party. I'd seen popen (and it's cousins popen3, popen4) at http://devver.net/blog/2009/10/ruby-subprocesses-part_3/ I wasn't sure it would work, so I stuck with the win-32/process library. Also, I had to change the current working directory (cwd). I'm not sure if popen has this as an option. I'll take a look, but it would early next week before I have time. Thanks again, Roger.

from spork.

Milhouse avatar Milhouse commented on September 24, 2024

I'm not an expert on processes and pipes. The reason I used the win32-process gem was to create a new process that returned a PID and continued on it's merry way independent of the parent process. popen and related apis seem to expect the parent process to wait for the child to finish. There may be a way to do what I need, but it's not clear to me.

There is a new call in Ruby 1.9 that does this. Process.spawn. It fires off a new process and returns the PID. It allows the working directory to be set. It works in the edge JRuby 1.5 using Ruby 1.9.2. The PTY.spawn in Ruby 1.8 has similar functionality, but doesn't work in Windows. I'm going to experiment to see how this might work.

from spork.

rdp avatar rdp commented on September 24, 2024

you can probably just spawn off a new thread to wait on the popen thread.

from spork.

jetsgit avatar jetsgit commented on September 24, 2024

+1

Would be very handy

jet

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

+1

thank!!

from spork.

rdp avatar rdp commented on September 24, 2024

can we close this?

from spork.

timcharper avatar timcharper commented on September 24, 2024

I think it is closed. People keep on commenting on it, however :S. okay people: it's closed! It's been done! No more commenting!

We should probably open up a new ticket for Java support.

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

but exist a version for windows?

from spork.

timcharper avatar timcharper commented on September 24, 2024

yes! :)

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

where i can download?

from spork.

timcharper avatar timcharper commented on September 24, 2024

gem install spork.

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

when i do that show me this error:
Error installing spork:
ERROR: Failed to build gem native extension.

from spork.

timcharper avatar timcharper commented on September 24, 2024

can you post the make.out file? full screen shot? any and all details will be helpful. Use jing to record and share a quick screencast, if possible.

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

the gem_make.out:

"H:/Rodrigo Guerrero/RubyApp/Ruby187/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
installing windows dependencies

"H:/Rodrigo Guerrero/RubyApp/Ruby187/bin/ruby.exe" -rubygems H:/Rodrigo Guerrero/RubyApp/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Documents and Settings/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib" RUBYLIBDIR="C:/Documents and Settings/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib"
H:/Rodrigo Guerrero/RubyApp/Ruby187/bin/ruby.exe: No such file or directory -- H:/Rodrigo (LoadError)

from spork.

rdp avatar rdp commented on September 24, 2024

ahh. I think that is something of a bug in rubygems (doesn't handle spaces in the dir name). I'll report it there if there are no objections to me doing so.

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

But i do without space for test:
"H:/Rodrig1/RubyApp/Ruby187/bin/ruby.exe" -rubygems H:/Rodrig1/RubyApp/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake RUBYARCHDIR="C:/Docume~1/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib" RUBYLIBDIR="C:/Documents and Settings/Usuario/.bundle/ruby/1.8/gems/spork-0.8.4/lib"

but show me other error:
No examples matching ./spec/*_/__spec.rb could be found

from spork.

rdp avatar rdp commented on September 24, 2024

that might be a real bug...anybody know where the root cause of that one might be found?

from spork.

rdp avatar rdp commented on September 24, 2024

installs for me with 1.8.7 from http://rubyinstaller.org/downloads/

D:\installs\a space\ruby-1.8.7-p249-i386-mingw32-1\ruby-1.8.7-p249-i386-mingw32\bin>gem install spork
Building native extensions.  This could take a while...
Successfully installed spork-0.8.4
1 gem installed
because of new gem installation recreating all faster_rubygems caches
faster_rubygems: creating caches
..

Not sure about the other one though...

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

I have install rails 3.0.0.beta.4

from spork.

rdp avatar rdp commented on September 24, 2024

upload your files somewhere and I can test it

from spork.

rguerrero avatar rguerrero commented on September 24, 2024

give me a mail where send you.

Thank

from spork.

rdp avatar rdp commented on September 24, 2024

[email protected]

from spork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.