garrettheaver / guard-rspec-jruby Goto Github PK
View Code? Open in Web Editor NEWGuard::RSpec extension to improve performance on JRuby
License: MIT License
Guard::RSpec extension to improve performance on JRuby
License: MIT License
It currently appears that bundle exec guard
starts two java processes (actually three but one is very short lived). The second java process is a child of the first which itself is a child of the terminal that guard was started in.
Under normal circumstances the second java process terminates along with its parent (this is the case with guard-rspec). However in our case the second process gets orphaned and claimed by init when its parent is terminated and it's currently unclear as to why.
For now the only workaround is to manually kill the process.
I use rbenv. When I bundle I use '$ bundle install --binstubs=bin --path vendor/bundle'. I have OpenJDK 7, and jruby 1.7, on a Ubuntu 12.04 box. I have require guard-rspec-jruby in my Guardfile, and the guard 'rspec-juby' block as well. When I run '$ bundle exec guard' I get the following error. I even went as far as specifying gempaths in my .gemrc file. That didn't help. Any ideas? If you need more info, I'm more than happy to help with that.
vagrant@devweb01:/vagrant$ bundle exec guard
io/console on JRuby shells out to stty for most operations
21:17:12 - INFO - Guard uses TerminalTitle to send notifications.
21:17:12 - INFO - Guard is now watching at '/vagrant'
21:17:12 - INFO - Guard::RSpec is running, with RSpec 2!
21:17:12 - INFO - Running all specs
LoadError: no such file to load -- bundler/setup
require at org/jruby/RubyKernel.java:1019
require at /home/vagrant/.rbenv/versions/jruby-1.7.0/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at <script>:2
at :1
at :1
__send__ at org/jruby/RubyBasicObject.java:1667
send at org/jruby/RubyKernel.java:2077
catch at org/jruby/RubyKernel.java:1173
each at org/jruby/RubyArray.java:1612
catch at org/jruby/RubyKernel.java:1173
each at org/jruby/RubyArray.java:1612
synchronize at org/jruby/ext/thread/Mutex.java:149
__send__ at org/jruby/RubyBasicObject.java:1667
send at org/jruby/RubyKernel.java:2077
load at org/jruby/RubyKernel.java:1045
(root) at /vagrant/vendor/bundle/jruby/1.9/bin/guard:23
21:17:13 - ERROR - (LoadError) no such file to load -- bundler/setup
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.