-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
RuntimeError: You want to finish 4 frames, but stack size is only 1 #163
Comments
Hi @bbugh. First of all, thanks for your kind words ❤️. Second, thanks for the report. It uses up to date ruby and it seems easily reproducible... 👍 Another thing you could try to further isolate it is replace |
Good call, I tried it with just I didn't think about that since I was actually not loading Should I make another bug in the |
Yes, please! |
I have the same error but only in this situation, with pry (0.11.3) pry-byebug (3.6.0) installed and ruby 2.5.1, When I use edit -c after going out of the emacs editor (or vim) I get the followinf trace:
When I use edti without -c option, it works well, If I remove pry-byebug gem it also works well, and if I use only byebug it also works well |
Minimal reproducible example: # minimal_reproducible_example.rb
require 'pry'
def a_method
binding.pry
end
binding.pry
puts 'hello' $ ruby minimal_reproducible_example.rb
From: /Users/____/yak-shave/minimal_reproducible_example.rb @ line 8 :
3: def a_method
4: binding.pry
5: end
6:
7: binding.pry
=> 8: puts 'hello'
[1] pry(main)> a_method
RuntimeError: You want to finish 4 frames, but stack size is only 1
from /Users/_______/.rvm/gems/ruby-2.3.3/gems/pry-byebug-3.6.0/lib/byebug/processors/pry_processor.rb:18:in `step_out' I share the confusion about why pry-byebug is in the trace, even though only pry is require'd $ gem list pry
pry (0.11.3)
$ gem list byebug
byebug (10.0.2)
$ gem list pry-byebug
pry-byebug (3.6.0)
$ ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin17] It looks like the key to reproducing is just having pry-byebug installed, then calling a method that tries to call another The solution that works to solve this example (though not satisfyingly explain it, nor solve the issues for those who would like to use pry-byebug) is
|
@rrcobb Thanks a lot |
3 years later and this issue still persists. Has any further investigation ever been made to try and solve this? |
Hello! pry-byebug is awesome and you are awesome. Thanks for saving my butt from printf debugging so many times, I'm so spoiled that when I go use other languages I'm sad not to have anything like this.
I am having a strange issue with pry-byebug. Google sends me to a few other Github issues that are several years old, but none have a resolution. I am getting this error when doing
binding.pry
in a very simple Ruby script.If I uninstall the gem
pry-byebug
then it works fine and I get thepry prompt
as expected.To reproduce using the script, just run
ruby main.rb
and when the first prompt pops up, doplayer.remove_component(:velocity)
and you'll (hopefully) get the error.Full backtrace:
The text was updated successfully, but these errors were encountered: