Code Monkey home page Code Monkey logo

Comments (4)

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 26, 2024 1

Hi @kikonen, thanks for reporting. This issue is mentioned in #39, and already fixed in #41. Unfortunately, I haven't release a new version yet. So, in the meantime, you can install the gem pointing directly to this repo's master branch.

gem 'ruby_jard', group: :development, git: 'https://github.com/nguyenquangminh0711/ruby_jard'

I'll comment in this issue when the patched version is released.

from ruby_jard.

kikonen avatar kikonen commented on May 26, 2024

yes, that problem is seemingly fixed there

from ruby_jard.

kikonen avatar kikonen commented on May 26, 2024

Nope, actually doesn't work always

howto

  • "jard" breakpoint in line
  • execute action in rails app
  • hit breakpoint and continue
  • replace breakpoint to be "binding.pry"
  • execute action in rails app
    => "jard_control_flow" error hit

And seemingly after this is hit, have to force exit pry session via "!!!" and then kill and restart rails server

from ruby_jard.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 26, 2024

@kikonen Yeah, that's kinda a limitation. I mentioned in one of the issue links above:

The limitation is that after jard is first triggered, the backward compatibility is not guranteed anymore. The reason is that after Jard starts, it takes over internal states of Pry and Byebug. So, byebug and pry are not awared of external changes, and won't work as expected. If Jard doesn't start, they are fine.

When you do a live-reloading, the reloading engine replaces the content of the file you injected, Jard configuration stays intact. So, when binding.pry is triggered with Jard-specific configurations. Overcoming this limitation is not possible now. Both Byebug and Pry somehow depends on the global configurations. In further future, I may make some contributions to them to fix this issue forever.

from ruby_jard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.