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

WEird issue where it shows me the wrong source and doesn't catch in the pry-remote client #75

Open
krainboltgreene opened this issue Jan 24, 2018 · 4 comments

Comments

@krainboltgreene
Copy link

On server:

  def async
    binding.remote_pry
    set_user

    query = case params[:scope]
    when "selling"
      @user.products.with_sale_status(:active, :in_review, :in_review_skipped, :contact_seller, :paused)
    when "purchases"
      @user.orders.where.not(status: :pending)
    end

    if query.present?
      render :async, locals: {user: @user, records: query.page(params[:page]).per(params[:per]), scope: params[:scope]}, layout: false
    else
      head :not_found
    end

    binding.remote_pry
  end

In console:

𝑓 pry-remote --wait

What happens:

[pry-remote] Waiting for client on druby://127.0.0.1:9876
[pry-remote] Client received, starting remote session
[pry-remote] Remote session terminated
[pry-remote] Ensure stop service

From: .../pry-remote-0.1.8/lib/pry-remote.rb @ line 321 Object#remote_pry:

    319: def remote_pry(host = PryRemote::DefaultHost, port = PryRemote::DefaultPort, options = {})
    320:   PryRemote::Server.new(self, host, port, options).run
 => 321: end

(development) #<Binding:0x00007f85185f4098>:0>
@krainboltgreene
Copy link
Author

It looks like as soon as it catches, the remote session client is killed and the source of remote_pry shows up.

@ColinTheRobot
Copy link

Running into this as well while trying to use remote_pry with foreman

@sagotsky
Copy link

Bump. Me too. From my POV this completely breaks pry-remote.

@zreisman
Copy link

Removing pry-byebug resolves this for me. Also using foreman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants