New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run script with -S option using the complete jar #1678
Comments
What environment are you running on? Using MacOS + Java 7 or Java 8 it is working on my machine:
|
I'm running WinXP and java 1.7.0_21. It's the same with other java versions. And with Win7 it's works well. It seems something is wrong with WinXP. |
hmm weird indeed. I wonder if it is FAT filesystem vs NTFS? I don't actually have a XP system to try :| |
I can try to debug it. Can you give me a hint where I can start to look? |
A first thing to do would be to git clone our repo and build JRuby on XP and see if it works once you compile it (you need Maven and Javac installed). If you compile and bin\jruby -S gem list does not work then it is something more generic and related to jar-complete. I am also fairly sure we used to work on XP, so we can probably git bisect the problem if we can figure out a point where it was working on XP. |
with jruby-complete-9000.dev.jar
Maybe the problem is resolved with the next release. |
Oh be sure to 'git co jruby-1_7' to help reduce the scope since master is for our next major release. We might be regressing on windows atm on master. |
FWIW I've been using the Perhaps this bug has been fixed? |
@rtyler (and others) actually it is still broken:
the reason is that -S search on path and finds those shims from "rbenv" which are not ruby files but shell scripts and it fails. I would say given "preference" to the bundled scripts would at least solve part of the rbenv problem and make tools like "jruby-gradle" more robust against what is installed on machine it running on. not sure if I just reported a "new bug" |
see also #1218 |
@mkristian it sounds like you've got a different bug than what the original reporter had/ I've seen the same behavior that you're discussing with rvm and its setting of |
java -jar -Djruby.cli.debug=true target/jruby-complete-9.2.1.0-SNAPSHOT.jar -S gem list
... working well these days |
Hello,
java -cp jruby-complete-1.6.8.jar org.jruby.Main -S gem list
works fine. But
java -cp jruby-complete-1.7.12.jar org.jruby.Main -S gem list
failed.
jruby: No such file or directory -- gem (LoadError)
is it a bug or must I use another way to invoke the included scripts ?
The text was updated successfully, but these errors were encountered: