Closed heartpunk closed 4 years ago
First of all, are you sure you're using the latest version of the gem? What are you trying to do?
Latest version of pry, I didn't constrain the pry-stack_explorer version. Unfortunately, that bit of my gemfile is blown away now, so I can't be sure which it happened with.
Trying binding.pry
in the context of a factory/rspec with the stack explorer loaded. segfaulted before showing me the pry prompt.
So putting binding.pry
into a factory definition results in a segfault?
Specifically it was in an after(:build)
callback, but it also happened in the context of a before(:all)
in rspec.
Maybe it comes down to a conflict with another loaded gem with extensions (or one without)?
It is possible. Do you use any other Pry plugins apart from pry-rails
?
Not even pry-rails
OK, your application is not a Rails application, is it?
It is rails! Rails 3.2.13.
So how do you run Pry? You're supposed to include the pry-rails
gem in your Gemfile. See https://github.com/pry/pry/wiki/Setting-up-Rails-or-Heroku-to-use-Pry#wiki-pry_rails
Just binding.pry
with gem 'pry'
in the Gemfile.
Oh, I don't really want to use pry everywhere. I set it up for specific instances because it's nicer than debugger. If that's all that pry-rails
does, I'm not after it.
Oh, I see. That should be fine. Does the segfault occur if you put binding.pry
inside a test?
Haven't tried that! Lemme check.
yes. took the time to filter the sensitive stuff outta this stack trace for you.
Thanks. We'll see what we can do…
:thumbsup:
I can confirm the crashing behaviour. Don't have time to isolate the problem right now, but I'll try to do it in the next weeks.
Unfortunately, it's in a private repo to which I don't have IP rights. What information could I try to get you that might help in building a repro? I don't have time to figure out the whole repro on my own, but I'm happy to do what I can to get the relevant info.