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

next keyword hijacked in loop #60

Open
br3nt opened this issue Dec 9, 2014 · 3 comments
Open

next keyword hijacked in loop #60

br3nt opened this issue Dec 9, 2014 · 3 comments

Comments

@br3nt
Copy link

br3nt commented Dec 9, 2014

Howdy, I've encountered an issue where the next keyword is being hijacked and can no longer skip iterations using the next keyword. I assume this is also happening for continue, etc.

Example:

pry(main)> [1,2,3].collect do |v|
pry(main)*   next if v == 2  
Error: Cannot find local context. Did you use `binding.pry`?
pry(main)*   v
pry(main)* end  
=> [1, 2, 3]

binding.pry has not been called in the pry console or during the execution of the application, so I don't know why this is happening.

How do I stop this?

Ruby version: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Rails version: Rails 3.2.20

@trevorrjohn
Copy link

any luck with this?

@trevorrjohn
Copy link

I ended up moving to pry-byebug which solved this issue.

@JesseAldridge
Copy link

Same problem with break

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

No branches or pull requests

3 participants