Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby 1.6RC3
-
Fix Version/s: None
-
Component/s: Interpreter
-
Labels:None
-
Environment:MacOSX 1.0.6
-
Testcase included:yes
-
Number of attachments :
Description
Here's the error
LoadError: no such file to load -- whois/answer/parser/whois.nic
require at org/jruby/RubyKernel.java:1037
require at /Users/weppos/.rvm/rubies/jruby-1.6.0.RC3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
(root) at ./test/whois/answer/parser/whois.nic.so_test.rb:2
load at org/jruby/RubyKernel.java:1062
__file__ at /Users/weppos/.rvm/gems/jruby-1.6.0.RC3/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
each at org/jruby/RubyArray.java:1572
(root) at /Users/weppos/.rvm/gems/jruby-1.6.0.RC3/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
rake aborted!
You can reproduce it by trying to execute the test suite of the Whois Gem.
https://github.com/weppos/whois/tree/222f9244884ed745842a4050909708b9b663376c
The whois.nic.so_test.rb file attempts to include a whois.nic.so.rb file using the following syntax
require 'whois/answer/parser/whois.nic.so'
Issue Links
- is duplicated by
-
JRUBY-6484
Require pygments.rb gem
-
Wow, this is a really weird case.
We use ".so" in the file being required to know we should look for extensions. We then search for .so, .jar, etc but never search for .so.rb. This is mostly the behavior of Ruby, but perhaps there's something we're missing.
I will say it's very questionable for the whois library to require files with .so at the end, since that's rather ambiguous...
Looking into it.