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

Polyphony doesn't work with debug gem #100

Open
noteflakes opened this issue May 15, 2023 · 0 comments
Open

Polyphony doesn't work with debug gem #100

noteflakes opened this issue May 15, 2023 · 0 comments

Comments

@noteflakes
Copy link
Collaborator

noteflakes commented May 15, 2023

/home/sharon/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/debug-1.8.0/lib/debug/session.rb:2544:in `trap': super: no superclass method `trap' for Polyphony:Module (NoMethodError)
Did you mean?  tap
        from examples/core/debug.rb:5:in `require'
        from examples/core/debug.rb:5:in `<main>'

The debug gem prepends a TrapInterceptor module that defines a #trap method into Object, Kernel, and Signal. We might want to use the same technique to override methods like #trap:

module ::Kernel
  prepend ForkInterceptor
  prepend TrapInterceptor
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant