Comments (14)
Hi @manuelmeurer ! Thanks for the report. I'm sorry to release buggy versions like this, but pry-byebug
is not extensively tested (the test suite has been recently added) and I don't really know the code that well yet...
Anyways, does this happen all the time? Do you have a reproducible app/script I can try? I've been using it in one of my apps (Rails 4.0.0) and also I just tried it in a toy example (no Rails) and it worked fine.
from pry-byebug.
No need to apologize, it's great to have you working on this!
Yes, it happens all the time, but unfortunately I don't have a small app for you to try, the one I'm working on is quite big and has lots of dependencies.
It seems like @pry
does not get set properly over here: https://github.com/deivid-rodriguez/pry-byebug/blob/master/lib/pry-byebug/processor.rb#L27
If you can't figure it out, we can just leave this issue open for now, maybe it will sort itself out.
from pry-byebug.
I tried this with rails 3.2.14 and I can't reproduce it either. Leaving this open until someone hits it again...
Cheers!
from pry-byebug.
I'm hitting this same problem. Let me see if I can isolate it for you.
from pry-byebug.
Would you be able to try reproduce this using ruby 2.1.0 + the patch provided in the following issue: https://bugs.ruby-lang.org/issues/9321#change-44189?
Not sure about other ruby managers, but to install it using rvm, do
git clone git://github.com/ruby/ruby.git
cd ruby
git format-patch -1 c2e72fb
rvm reinstall 2.1.0 --patch 0001-vm.c-rb_vm_pop_cfunc_frame-added.-It-cares-c_return-.patch
I think this issue might get resolved with that patch.
from pry-byebug.
was using 2.0.0 and 4.0.0
just going to ruby "2.1.0"/gem 'rails', '4.0.2'
fixed the problem.
thanks!
-Ben
Ben Wheeler
mobile 917.254.1578
On Fri, Jan 10, 2014 at 3:57 AM, David Rodríguez
[email protected]:
Would you be able to try reproduce this using ruby 2.1.0 + the patch
provided in the following issue:
https://bugs.ruby-lang.org/issues/9321#change-44189?Not sure about other ruby managers, but to install it using rvm, do
git clone git://github.com/ruby/ruby.git
cd ruby
git format-patch -1 c2e72fb
rvm reinstall 2.1.0 --patch 0001-vm.c-rb_vm_pop_cfunc_frame-added.-It-cares-c_return-.patchI think this issue might get resolved with that patch.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-32011902
.
from pry-byebug.
although now i get:
undefined method `interface' for #PryByebug::Processor:0x007fb8bf615150
-Ben
Ben Wheeler
mobile 917.254.1578
On Sat, Jan 11, 2014 at 10:19 AM, Benjamin Wheeler <
[email protected]> wrote:
was using 2.0.0 and 4.0.0
just going to ruby "2.1.0"/gem 'rails', '4.0.2'
fixed the problem.
thanks!-Ben
Ben Wheeler
mobile 917.254.1578On Fri, Jan 10, 2014 at 3:57 AM, David Rodríguez <[email protected]
wrote:
Would you be able to try reproduce this using ruby 2.1.0 + the patch
provided in the following issue:
https://bugs.ruby-lang.org/issues/9321#change-44189?Not sure about other ruby managers, but to install it using rvm, do
git clone git://github.com/ruby/ruby.git
cd ruby
git format-patch -1 c2e72fb
rvm reinstall 2.1.0 --patch 0001-vm.c-rb_vm_pop_cfunc_frame-added.-It-cares-c_return-.patchI think this issue might get resolved with that patch.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-32011902
.
from pry-byebug.
i use rbenv, can't figure out how to use patch.
-Ben
Ben Wheeler
mobile 917.254.1578
On Sat, Jan 11, 2014 at 10:20 AM, Benjamin Wheeler <
[email protected]> wrote:
although now i get:
undefined method `interface' for #PryByebug::Processor:0x007fb8bf615150-Ben
Ben Wheeler
mobile 917.254.1578On Sat, Jan 11, 2014 at 10:19 AM, Benjamin Wheeler <
[email protected]> wrote:was using 2.0.0 and 4.0.0
just going to ruby "2.1.0"/gem 'rails', '4.0.2'
fixed the problem.
thanks!-Ben
Ben Wheeler
mobile 917.254.1578On Fri, Jan 10, 2014 at 3:57 AM, David Rodríguez <
[email protected]> wrote:Would you be able to try reproduce this using ruby 2.1.0 + the patch
provided in the following issue:
https://bugs.ruby-lang.org/issues/9321#change-44189?Not sure about other ruby managers, but to install it using rvm, do
git clone git://github.com/ruby/ruby.git
cd ruby
git format-patch -1 c2e72fb
rvm reinstall 2.1.0 --patch 0001-vm.c-rb_vm_pop_cfunc_frame-added.-It-cares-c_return-.patchI think this issue might get resolved with that patch.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-32011902
.
from pry-byebug.
I think you need to install ruby-build
as an rbenv plugin and then a quick look to the ruby-build's README tells me something like this should work
git clone git://github.com/ruby/ruby.git
cd ruby
git format-patch -1 c2e72fb
rbenv install --patch 2.1.0 < 0001-vm.c-rb_vm_pop_cfunc_frame-added.-It-cares-c_return-.patch
But I don't use rbenv so I haven't tried it.
from pry-byebug.
can't figure it out... i'm getting
-> http://dqw8nmjcqpjn7.cloudfront.net/9e6386d53f5200a3e7069107405b93f7
Installing ruby-2.1.0...
can't find file to patch at input line 30
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|From c2e72fb34302e444f6cc4c6477877e36902a7035 Mon Sep 17 00:00:00 2001
|From: ko1 ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|Date: Thu, 9 Jan 2014 10:12:59 +0000
|Subject: [PATCH] * vm.c (rb_vm_pop_cfunc_frame): added. It cares c_return
| event. The patch base by drkaes (Stefan Kaes). [Bug #9321] *
variable.c
| (rb_mod_const_missing): use rb_vm_pop_cfunc_frame() instead of
| rb_frame_pop(). * vm_eval.c (raise_method_missing): ditto. * vm_eval.c
| (rb_iterate): ditto. * internal.h (rb_vm_pop_cfunc_frame): add decl. *
| test/ruby/test_settracefunc.rb: add tests. provided by drkaes (Stefan
| Kaes). * vm.c, eval.c, include/ruby/intern.h (rb_frame_pop): move
| definition of rb_frame_pop() and deprecate it. It doesn't care about
| `return' events.
|
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44535b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
---|
ChangeLog |
eval.c |
include/ruby/intern.h |
internal.h |
test/ruby/test_settracefunc.rb |
++++++++++++++++++++++++++++++++++++++++++ |
variable.c |
vm.c |
vm_eval.c |
8 files changed, 136 insertions(+), 16 deletions(-) |
|
|diff --git a/ChangeLog b/ChangeLog
|index fa8890f..f699266 100644
|--- a/ChangeLog
|+++ b/ChangeLog
File to patch: (?)
-Ben
Ben Wheeler
mobile 917.254.1578
On Sat, Jan 11, 2014 at 10:45 AM, David Rodríguez
[email protected]:
I think you need to install ruby-build as an rbenv plugin and then a
quick look to the ruby-build's README tells me something like this should
workgit clone git://github.com/ruby/ruby.git
cd ruby
git format-patch -1 c2e72fb
rbenv install --patch 2.1.0 < 0001-vm.c-rb_vm_pop_cfunc_frame-added.-It-cares-c_return-.patchBut I don't use rbenv so I haven't tried it.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-32099155
.
from pry-byebug.
Do some google research, or ask about this in the right place, or wait for the next patch level release of ruby....
Sorry I can't be of more help but I'm not a rbenv
user...
from pry-byebug.
Not sure if this is the same case, but I had both pry-nav
and pry-debug
in my Gemfile. After removing pry-nav
this fixed itself.
from pry-byebug.
i'm now using
gem 'pry', group: [:development, :test]
gem 'pry-rails', group: [:development, :test]
gem 'pry-byebug', group: [:development, :test] # instead of pry-debugger
or pry-nav
gem 'pry-stack_explorer', group: [:development, :test]
and that's working fine, with ruby 2.1.0 and rails 4.1.0.
-Ben
Ben Wheeler
mobile 917.254.1578
On Thu, May 15, 2014 at 5:44 AM, Tomas Varneckas
[email protected]:
Not sure if this is the same case, but I had both pry-nav and pry-debugin my Gemfile. After removing
pry-nav this fixed itself.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-43189335
.
from pry-byebug.
Closing this as it seemed an incompatibility with pry-nav
. Anyone still getting it, feel free to reopen.
from pry-byebug.
Related Issues (20)
- Test failures: NoMethodError: undefined method `binding_stack' for nil:NilClass HOT 2
- Make pry-byebug more extendable
- It's possible to start a REPL session passing a command? HOT 1
- Loading pry-byebug on Archlinux fails with "cannot load such file -- irb" HOT 1
- Newest version of Pry breaks pry-byebug HOT 15
- Pry Byebug specifies an older version of Pry HOT 1
- Deprecation warnings in Ruby 2.7 HOT 2
- Pry "next" alias does not work
- Any plans for a new release? HOT 4
- less: unrecognized option: X HOT 1
- PR proposition : Deprecated - Pry.config.control_d_handler HOT 6
- Repeated newlines in multi-line strings are ignored
- NameError: undefined local variable or method `text' for #<PryByebug::BreakCommand HOT 2
- New release? HOT 2
- Deprecation warnings Pry v 0.14.1 on Ruby v 3.1.1 HOT 1
- Relax restriction for byebug version HOT 5
- The version 3.10.0 breaks rails console HOT 8
- Build failure with ruby-pry-byebug version 3.9.0-1
- Run error using Ruby 3.2 HOT 1
- Deprecation on Ruby 3.2.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pry-byebug.