Skip to content
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

"gem install" with jruby-complete results in "missing class name (`org.jruby.util.Classpath')" #3095

Closed
rtyler opened this issue Jul 1, 2015 · 1 comment
Assignees
Milestone

Comments

@rtyler
Copy link

rtyler commented Jul 1, 2015

On the current JRuby 1.7.21-SNAPSHOT (md5sum: 726148282565527249367b129c22bad8 jruby-complete-1.7.21-20150626.195528-6.jar) there are some gems which will result in the "missing class name" error from above, e.g.:

Negative case

➜  classpath-repro  java -jar jruby-complete-1.7.21-20150626.195528-6.jar -S gem install ./diff-lcs-1.2.5.gem --ignore-dependencies --install-dir=./gems --no-user-install --wrappers --no-document --local
ERROR:  While executing gem ... (NameError)
    missing class name (`org.jruby.util.Classpath')
➜  classpath-repro  

I found this also occurs with Rack:

➜  classpath-repro  java -jar jruby-complete-1.7.21-20150626.195528-6.jar -S gem install ./rack-1.6.4.gem --ignore-dependencies --install-dir=./gems --no-user-install --wrappers --no-document --local
ERROR:  While executing gem ... (NameError)
    missing class name (`org.jruby.util.Classpath')
➜  classpath-repro  

Positive case

Other gems, such as thread_safe do not have this problem:

➜  classpath-repro  java -jar jruby-complete-1.7.21-20150626.195528-6.jar -S gem install ./thread_safe-0.3.5.gem --ignore-dependencies --install-dir=./gems --no-user-install --wrappers --no-document --local
Successfully installed thread_safe-0.3.5
1 gem installed
➜  classpath-repro  

On JRuby 1.7.20.1

It does not reproduce with these gems on 1.7.20.1 however:

➜  classpath-repro  java -jar jruby-complete-1.7.20.1.jar -S gem install ./rack-1.6.4.gem --ignore-dependencies --install-dir=./gems --no-user-install --wrappers --no-document --local
Successfully installed rack-1.6.4
1 gem installed
➜  classpath-repro  
@rtyler
Copy link
Author

rtyler commented Jul 1, 2015

One other interesting thing to note, it appears that gems/gems/rack-1.6.4 is present, so some portion of the installation succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants