Skip to content

pry needs at least one un-asynchronized method in order to find source information #1

@iCodeSometime

Description

@iCodeSometime

Description

Pry needs. a valid source_location on a method in order to find source location for the class.
The way we're currently redefining the methods removes that.
A possible solution suggested by the pry maintainer is to use eval; we should look into that.

Reproduction Steps

require 'asynchronize'
class Test
  include Asynchronize
  asynchronize :test
  def test
  end
end

$ Test
Error: Couldn't locate a definition for Test

Workaround

If you need source information in pry, make sure you have at least one method that's not asynchronized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions