Forcing jruby-complete to execute a command. #1218
I'm having some troubles with jruby-complete in environements with rbenv.
$ echo $PATH /home/blerins/.rbenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ java -Djruby.debug.scriptResolution=true -jar target/lib/jruby-complete.jar -S gem install bundler Found: /home/blerins/.rbenv/shims/gem SyntaxError: /home/blerins/.rbenv/shims/gem:3: syntax error, unexpected tSTRING_BEG [ -n "$RBENV_DEBUG" ] && set -x ^ $ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ java -Djruby.debug.scriptResolution=true -jar target/lib/jruby-complete.jar -S gem install bundler Successfully installed bundler-1.3.5 1 gem installed
As seen at:
JRuby always tries to find the script first, I was wondering if there is any possibility to force Jruby to ejecute a command.
The text was updated successfully, but these errors were encountered:
well, I do see that error quite regularly :(
but my setup is probably a bit unusual: I manage my MRI with rbenv but added jruby to PATH. that allows me to switch fast to jruby by adding 'j' and to call
gem,irb, etc are usually a ruby scripts and things just work fine. with having $HOME/.rbenv/shims in the path those scripts are bash scripts :(
but looking through my
they all will fail like
I agreee with @BanzaiMan that jruby should look first in the jar before looking on the PATH but it is only a partial solution for the above given problem.