Jarmo Pertman
2010-Oct-22 12:46 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
Hello! I''m trying to run autotest under Windows when using Rails 3.0.1 and RSpec 2.0.1. It''s not working so far. This is what happens: C:\Users\jarmo\Desktop\minu\projects\Ruby\sample_app>autotest loading autotest/rails_rspec2 style: RailsRspec2 bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby -S C:/bin/pik/Ruby-187- p302/lib/ruby/gems/1.8/gems/rspec-core-2.0.1/bin/rspec --autotest ''C:/ Users/jarmo /Desktop/minu/projects/Ruby/sample_app/spec/controllers/ pages_controller_spec.rb'' bundler: command not found: C:\bin\pik\Ruby-187-p302\bin\ruby Install missing gem binaries with `bundle install` ... and then i have to interrupt it manually. I have installed gems autotest and autotest-rails-pure. Anything else i have to do to get it running? Jarmo
Jarmo Pertman
2010-Oct-24 19:20 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
No ideas, what might cause that problem? Could it be a Windows-only- issue? Jarmo On Oct 22, 3:46?pm, Jarmo Pertman <jarm... at gmail.com> wrote:> Hello! > > I''m trying to run autotest under Windows when using Rails 3.0.1 and > RSpec 2.0.1. It''s not working so far. This is what happens: > C:\Users\jarmo\Desktop\minu\projects\Ruby\sample_app>autotest > loading autotest/rails_rspec2 > style: RailsRspec2 > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby -S C:/bin/pik/Ruby-187- > p302/lib/ruby/gems/1.8/gems/rspec-core-2.0.1/bin/rspec --autotest ''C:/ > Users/jarmo > /Desktop/minu/projects/Ruby/sample_app/spec/controllers/ > pages_controller_spec.rb'' > bundler: command not found: C:\bin\pik\Ruby-187-p302\bin\ruby > Install missing gem binaries with `bundle install` > > ... and then i have to interrupt it manually. > > I have installed gems autotest and autotest-rails-pure. Anything else > i have to do to get it running? > > Jarmo > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
Jarmo Pertman
2010-Nov-10 13:54 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
I didn''t get any replies about that problem so far but i just managed to find out how to make it work manually. The problem is that the bundle exec is not working like this on Windows: bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby But works like this: bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exe I don''t understand who makes that decision what should be executed via bundler - is it RSpec? Rails? Bundler itself? Anyway, maybe someone knows what makes up that exec command so i can open up an issue at correct place. Jarmo On Oct 24, 9:20?pm, Jarmo Pertman <jarm... at gmail.com> wrote:> No ideas, what might cause that problem? Could it be a Windows-only- > issue? > > Jarmo > > On Oct 22, 3:46?pm,JarmoPertman<jarm... at gmail.com> wrote: > > > > > > > > > Hello! > > > I''m trying to run autotest under Windows when using Rails 3.0.1 and > > RSpec 2.0.1. It''s not working so far. This is what happens: > > C:\Users\jarmo\Desktop\minu\projects\Ruby\sample_app>autotest > > loading autotest/rails_rspec2 > > style: RailsRspec2 > > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby -S C:/bin/pik/Ruby-187- > > p302/lib/ruby/gems/1.8/gems/rspec-core-2.0.1/bin/rspec --autotest ''C:/ > > Users/jarmo > > /Desktop/minu/projects/Ruby/sample_app/spec/controllers/ > > pages_controller_spec.rb'' > > bundler: command not found: C:\bin\pik\Ruby-187-p302\bin\ruby > > Install missing gem binaries with `bundle install` > > > ... and then i have to interrupt it manually. > > > I have installed gems autotest and autotest-rails-pure. Anything else > > i have to do to get it running? > > >Jarmo > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2010-Nov-10 14:06 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Nov 10, 2010, at 7:54 AM, Jarmo Pertman wrote:> I didn''t get any replies about that problem so far but i just managed > to find out how to make it work manually.What manual change did you make?> The problem is that the bundle exec is not working like this on > Windows: > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby > > But works like this: > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exe > > I don''t understand who makes that decision what should be executed via > bundler - is it RSpec? Rails? Bundler itself?As of rspec-2.0, rspec prefixes the command with "bundle exec " if there is a Gemfile, but delegates to Autotest''s definition of the ruby executable itself. There is already an issue open in rspec-core to have an opt-out for "bundle exec ", but that wouldn''t change which ruby executable is used. Cheers, David> Anyway, maybe someone knows what makes up that exec command so i can > open up an issue at correct place. > > Jarmo > > On Oct 24, 9:20 pm, Jarmo Pertman <jarm... at gmail.com> wrote: >> No ideas, what might cause that problem? Could it be a Windows-only- >> issue? >> >> Jarmo >> >> On Oct 22, 3:46 pm,JarmoPertman<jarm... at gmail.com> wrote: >> >> >> >> >> >> >> >>> Hello! >> >>> I''m trying to run autotest under Windows when using Rails 3.0.1 and >>> RSpec 2.0.1. It''s not working so far. This is what happens: >>> C:\Users\jarmo\Desktop\minu\projects\Ruby\sample_app>autotest >>> loading autotest/rails_rspec2 >>> style: RailsRspec2 >>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby -S C:/bin/pik/Ruby-187- >>> p302/lib/ruby/gems/1.8/gems/rspec-core-2.0.1/bin/rspec --autotest ''C:/ >>> Users/jarmo >>> /Desktop/minu/projects/Ruby/sample_app/spec/controllers/ >>> pages_controller_spec.rb'' >>> bundler: command not found: C:\bin\pik\Ruby-187-p302\bin\ruby >>> Install missing gem binaries with `bundle install` >> >>> ... and then i have to interrupt it manually. >> >>> I have installed gems autotest and autotest-rails-pure. Anything else >>> i have to do to get it running? >> >>> Jarmo >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users >> >> _______________________________________________ >> rspec-users mailing list >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Jarmo Pertman
2010-Nov-10 14:54 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Nov 10, 4:06?pm, David Chelimsky <dchelim... at gmail.com> wrote:> On Nov 10, 2010, at 7:54 AM,JarmoPertmanwrote: > > > I didn''t get any replies about that problem so far but i just managed > > to find out how to make it work manually. > > What manual change did you make? > > > The problem is that the bundle exec is not working like this on > > Windows: > > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby > > > But works like this: > > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exeSorry that i didn''t bring it out more - i replaced bin\ruby with bin \ruby.exe and was able to run that bundle exec from the command line manually. So if the path to Ruby is constructed by RSpec then it is bug in RSpec''s otherwise it could be somewhere else. Maybe even in bundler, which could just add that missing ".exe" by itself... That''s why i''m asking. Jarmo
Jarmo Pertman
2010-Nov-10 15:21 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
Ok, the path is coming from autotest.rb in autotest gem. But i think that the bug is in Bundler instead: C:\Users\jarmo\Desktop\minu\projects\Ruby\sample_app>bundle exec c: \Ruby\bin\ruby --version bundler: command not found: c:\Ruby\bin\ruby Install missing gem binaries with `bundle install` C:\Users\jarmo\Desktop\minu\projects\Ruby\sample_app>bundle exec c: \Ruby\bin\ruby.exe --version ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] Thank you for the tip, David! Jarmo On Nov 10, 4:54?pm, Jarmo Pertman <jarm... at gmail.com> wrote:> On Nov 10, 4:06?pm, David Chelimsky <dchelim... at gmail.com> wrote: > > > On Nov 10, 2010, at 7:54 AM,JarmoPertmanwrote: > > > > I didn''t get any replies about that problem so far but i just managed > > > to find out how to make it work manually. > > > What manual change did you make? > > > > The problem is that the bundle exec is not working like this on > > > Windows: > > > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby > > > > But works like this: > > > bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exe > > Sorry that i didn''t bring it out more - i replaced bin\ruby with bin > \ruby.exe and was able to run that bundle exec from the command line > manually. So if the path to Ruby is constructed by RSpec then it is > bug in RSpec''s otherwise it could be somewhere else. Maybe even in > bundler, which could just add that missing ".exe" by itself... That''s > why i''m asking. > > Jarmo > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2010-Nov-10 15:23 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Nov 10, 2010, at 8:54 AM, Jarmo Pertman wrote:> On Nov 10, 4:06 pm, David Chelimsky <dchelim... at gmail.com> wrote: >> On Nov 10, 2010, at 7:54 AM,JarmoPertmanwrote: >> >>> I didn''t get any replies about that problem so far but i just managed >>> to find out how to make it work manually. >> >> What manual change did you make? >> >>> The problem is that the bundle exec is not working like this on >>> Windows: >>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby >> >>> But works like this: >>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exe > > Sorry that i didn''t bring it out more - i replaced bin\ruby with bin > \ruby.exe and was able to run that bundle exec from the command line > manually. So if the path to Ruby is constructed by RSpec then it is > bug in RSpec''s otherwise it could be somewhere else. Maybe even in > bundler, which could just add that missing ".exe" by itself... That''s > why i''m asking.RSpec subclasses Autotest (https://github.com/rspec/rspec-core/blob/master/lib/autotest/rspec2.rb#L5), generates the command, and delegates the ruby executable to Autotest (https://github.com/rspec/rspec-core/blob/master/lib/autotest/rspec2.rb#L44). So it is Autotest that is deciding what ruby command to use. Cheers, David
Jarmo Pertman
2010-Nov-10 17:32 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
Yup, understood and opened an issue in Bundler since it seems to be the culprit in the end: https://github.com/carlhuda/bundler/issues/issue/832 Just FYI if there''s any other Windows/RSpec2/Autotest/Bundler user :) Jarmo On Nov 10, 5:23?pm, David Chelimsky <dchelim... at gmail.com> wrote:> On Nov 10, 2010, at 8:54 AM,JarmoPertmanwrote: > > > > > > > > > > > On Nov 10, 4:06 pm, David Chelimsky <dchelim... at gmail.com> wrote: > >> On Nov 10, 2010, at 7:54 AM,JarmoPertmanwrote: > > >>> I didn''t get any replies about that problem so far but i just managed > >>> to find out how to make it work manually. > > >> What manual change did you make? > > >>> The problem is that the bundle exec is not working like this on > >>> Windows: > >>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby > > >>> But works like this: > >>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exe > > > Sorry that i didn''t bring it out more - i replaced bin\ruby with bin > > \ruby.exe and was able to run that bundle exec from the command line > > manually. So if the path to Ruby is constructed by RSpec then it is > > bug in RSpec''s otherwise it could be somewhere else. Maybe even in > > bundler, which could just add that missing ".exe" by itself... That''s > > why i''m asking. > > RSpec subclasses Autotest (https://github.com/rspec/rspec-core/blob/master/lib/autotest/rspec2.r...), generates the command, and delegates the ruby executable to Autotest (https://github.com/rspec/rspec-core/blob/master/lib/autotest/rspec2.r...). So it is Autotest that is deciding what ruby command to use. > > Cheers, > David > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2010-Nov-10 18:43 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Nov 10, 2010, at 11:32 AM, Jarmo Pertman wrote:> Yup, understood and opened an issue in Bundler since it seems to be > the culprit in the end: > https://github.com/carlhuda/bundler/issues/issue/832 > > Just FYI if there''s any other Windows/RSpec2/Autotest/Bundler user :)Nope. Think you''re the only one :) Thanks for following up on this. Cheers, David> > Jarmo > > On Nov 10, 5:23 pm, David Chelimsky <dchelim... at gmail.com> wrote: >> On Nov 10, 2010, at 8:54 AM,JarmoPertmanwrote: >> >> >> >> >> >> >> >> >> >>> On Nov 10, 4:06 pm, David Chelimsky <dchelim... at gmail.com> wrote: >>>> On Nov 10, 2010, at 7:54 AM,JarmoPertmanwrote: >> >>>>> I didn''t get any replies about that problem so far but i just managed >>>>> to find out how to make it work manually. >> >>>> What manual change did you make? >> >>>>> The problem is that the bundle exec is not working like this on >>>>> Windows: >>>>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby >> >>>>> But works like this: >>>>> bundle exec C:\bin\pik\Ruby-187-p302\bin\ruby.exe >> >>> Sorry that i didn''t bring it out more - i replaced bin\ruby with bin >>> \ruby.exe and was able to run that bundle exec from the command line >>> manually. So if the path to Ruby is constructed by RSpec then it is >>> bug in RSpec''s otherwise it could be somewhere else. Maybe even in >>> bundler, which could just add that missing ".exe" by itself... That''s >>> why i''m asking. >> >> RSpec subclasses Autotest (https://github.com/rspec/rspec-core/blob/master/lib/autotest/rspec2.r...), generates the command, and delegates the ruby executable to Autotest (https://github.com/rspec/rspec-core/blob/master/lib/autotest/rspec2.r...). So it is Autotest that is deciding what ruby command to use. >> >> Cheers, >> David >> _______________________________________________ >> rspec-users mailing list >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Luis Lavena
2010-Nov-10 19:56 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Wed, Nov 10, 2010 at 3:43 PM, David Chelimsky <dchelimsky at gmail.com> wrote:> On Nov 10, 2010, at 11:32 AM, Jarmo Pertman wrote: > >> Yup, understood and opened an issue in Bundler since it seems to be >> the culprit in the end: >> https://github.com/carlhuda/bundler/issues/issue/832 >> >> Just FYI if there''s any other Windows/RSpec2/Autotest/Bundler user :) > > Nope. Think you''re the only one :) >If you strip down the Bundler part, I''m under the same environment too :P While I can complain about Bundler doing weird things on Windows I decided to stop using it and switched to Isolate and invoke commands with "rake isolate:sh[autotest]" As for autotest coloring issues, for the ones wondering, we (RubyInstaller) are working on permanent ANSI coloring solutions for those Windows users. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry
Jarmo Pertman
2010-Nov-10 21:29 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Nov 10, 9:56?pm, Luis Lavena <luislav... at gmail.com> wrote:> If you strip down the Bundler part, I''m under the same environment too :P > > While I can complain about Bundler doing weird things on Windows I > decided to stop using it and switched to Isolate and invoke commands > with "rake isolate:sh[autotest]"I''m still staying with it in hope of it getting better and trying to give my feedback about it. Hopefully it doesn''t do weird things on Windows at some point.> As for autotest coloring issues, for the ones wondering, we > (RubyInstaller) are working on permanent ANSI coloring solutions for > those Windows users.Thanks! I didn''t even bother about writing about that since the coloring issues are happening quite often here and there. At least RSpec seems to work nowadays with that correctly. Can you share some more (even technical) information about these solutions? Maybe through some other channel if this might get too offtopic in here... Jarmo> > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup?ry > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
Luis Lavena
2010-Nov-10 23:55 UTC
[rspec-users] autotest not working on Windows with rails3 and rspec2?
On Wed, Nov 10, 2010 at 6:29 PM, Jarmo Pertman <jarmo.p at gmail.com> wrote:> > Can you share some more (even technical) information about these > solutions? Maybe through some other channel if this might get too > offtopic in here... >Search ANSICON and win32console on Rubyinstaller group: http://groups.google.com/group/rubyinstaller/browse_thread/thread/2d2a62db7281509a/ http://groups.google.com/group/rubyinstaller/browse_thread/thread/be67b409e483db20# First was the proposal and the first case of problems. The second was a full investigation and the offer of a bounty to get it fixed. Any question or problems you have running Ruby on Windows (RubyInstaller by preference), please don''t hesitate to ask in RubyInstaller group. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry