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

NameError: undefined local variable or method `text' for #<PryByebug::BreakCommand #373

Open
kikonen opened this issue Jun 7, 2022 · 2 comments

Comments

@kikonen
Copy link

kikonen commented Jun 7, 2022

break --show 1
NameError: undefined local variable or method `text' for #<PryByebug::BreakCommand:0x00007fb8190a59a0 @context={:target=>#<Binding:0x00007fb819b5be08>, :output=>#<Pry::Output:0x00007fb819057d68 @output=#<IO:<STDOUT>>, @color=false>, :eval_string=>"", :pry_instance=>#<Pry:0x00005568ac8d17f0 @binding_stack=[#<Bin....

Causes problems if trying to use breakpoints, since listing of them is not working

@kikonen
Copy link
Author

kikonen commented Jun 8, 2022

It looks like this monkey patch fixes it

module PryByebug
  module Helpers
    module Breakpoints
      def text
        Pry::Helpers::Text
      end
    end
  end
end

@danman01
Copy link

danman01 commented Dec 9, 2022

Aslo getting this:

[1] pry(#<Solicitations::Document>)> break 182
NameError: undefined local variable or method `text' for #<PryByebug::BreakCommand:0x00007fa9221f1698>
Did you mean?  test
from /Users/danny/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/pry-byebug-3.8.0/lib/pry-byebug/helpers/breakpoints.rb:42:in `print_full_breakpoint'

I'm on 3.8.0 however, and perhaps this has been fixed with this commit? d634bc0

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

2 participants