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

require '...' fails for rake task although the file exists. #2022

Closed
ianks opened this issue Oct 6, 2014 · 3 comments
Closed

require '...' fails for rake task although the file exists. #2022

ianks opened this issue Oct 6, 2014 · 3 comments

Comments

@ianks
Copy link

ianks commented Oct 6, 2014

I have a file which exists, that cannot be required by jruby-1.7.16.

1.9.3 (main):0 > require '/Users/ianks/Documents/Development/Adgenomics/click/lib/tasks/development.rake'
LoadError: no such file to load -- /Users/ianks/Documents/Development/Adgenomics/click/lib/tasks/development.rake
from org/jruby/RubyKernel.java:1065:in `require'

Not sure what information would help, but if there is any more information I can give you please let me know!

@ianks
Copy link
Author

ianks commented Oct 6, 2014

This seems to only be happening with *.rake files, afaict.

@enebo
Copy link
Member

enebo commented Oct 6, 2014

mri19 -e 'require "rakelib/applet.rake"'
/Users/enebo/Developer/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rakelib/applet.rake (LoadError)
    from /Users/enebo/Developer/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
    from -e:1:in `<main>'

Are you sure you are not thinking of load?

@kares kares added this to the Invalid or Duplicate milestone Mar 1, 2018
@kares
Copy link
Member

kares commented Mar 1, 2018

closing this JRuby 1.7.x issue (since its EOL). if still problematic on latest JRuby 9K let's have a clean slate

@kares kares closed this as completed Mar 1, 2018
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

3 participants