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
Pathname find fails with (LocalJumpError: yield called out of block) instead of returning an Enumerator #1944
Comments
Our pathname.rb file is a bit out of date. I added the missing logic for find. @blanquer When you find other 9000 issues you can tag with 9000_feedback and we will try and evaluate as quickly as we can. @eregon You originally did this work right? How am I supposed to merge this file? It is mostly the same but I need to tweak some portions right? |
@enebo The direct delegation to others methods and #<=> have been |
@enebo It seems like @headius took an older In MRI, Pathname native extension is in |
@eregon I think it should get put into lib/ruby/2.1. MRI on install puts it in this location so I guess we should just put it there. It is less complicated to find it as well. |
@enebo OK, that's what I did in 0d9120f. What about jruby/ruby? Should I |
Possibly we could git rm lib/pathname from our ruby fork. Then fetching/merging later MRI should give us a clue we need to keep it rm'd? @eregon how do we require it in etc/pathname/lib/pathname.rb? CLASSPATH require? @headius how do you think we should handle extension .rb file relative to our periodic merging of MRI stdlib? |
For the moment I just copied jruby/ruby's |
Perhaps we can make a merge script which knows about which ext we implement? Not sure..just brainstorming :) |
OK, seems https://github.com/jruby/jruby/blob/master/tool/sync_ruby is what I was looking for :) |
while Pathname.find works as expected when yielding to a block, it fails without one (where it should return an enum).
Repro:
The text was updated successfully, but these errors were encountered: