-
Notifications
You must be signed in to change notification settings - Fork 205
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
add uri:classloader://META-INF/jruby.home/lib/ruby/gems/shared to GEM_PATH #301
Comments
This is fixed in 2.x-dev |
eh, might not be fixed in all places. i'll double check that |
Can I ask - would this bug manifest in the following way? (with -Djruby.debug.loadService enabled)
This repeats for all stdlib classes that I try and require. Executing environment is:
Warbler config is in this gist. Any feedback would be great - thanks! |
this looks like the bug (which I never got around to submit a PR) in usually you need to see things like:
if you look at you debug output I am sure before JRuby found bundler there in jruby-mains I work around this with: the ENV thing you can add to your WEB-INF/init.rb file |
@jgwmaxwell if the BUNDLE_DISABLE_SHARED_GEMS env helps you, we should consider it to add it to the default init.rb of warbler. @jkutner maybe it is worth added it any ways. |
adding
uri:classloader://META-INF/jruby.home/lib/ruby/gems/shared
will ensure the default gems from jruby are treated as default gems with ALL classloaders.in case the uri:classloader protocol is unknown to jruby (1.7.13 and before), it will add a slightly extra failed places before reporting a missing file.
the current situation with "exotic" classloaders is to set
classpath://META-INF/jruby.home/lib/ruby/gems/shared
which does not find the default gems from jruby.not sure if this or where this is possible to add something to the GEM_PATH or to
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7624613-add-uri-classloader-meta-inf-jruby-home-lib-ruby-gems-shared-to-gem_path?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).Gem::Specification.dirs
The text was updated successfully, but these errors were encountered: