Comments (4)
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.
yes, that problem is seemingly fixed there
from ruby_jard.
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.
@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)
- dRB compatibility? HOT 2
- Error with Ruby 3.2, need pry > 0.14
- [BUG] Error on app startup -1 out of range HOT 3
- [BUG] Internal error from jard - undefined method `shift` for nil HOT 1
- [BUG] HOT 2
- [BUG] Source output incorrect HOT 2
- Supporting "disable-pry" kind of functionality HOT 2
- Support for JRuby HOT 2
- Breakpoint in initializer throws error "undefined method `to_hash' for nil:NilClass" HOT 1
- Pager isn't working HOT 8
- [BUG] Control command is empty HOT 3
- Anyone able to use this on Rails with Passenger? HOT 2
- [BUG] Not compatible with Rails CurrentAttributes - attributes come back as nil HOT 3
- [BUG] Can not step into subsequent calls on the same line of code (only the call which is evaluated first by Ruby)
- [BUG] Debugging console freezes when executing a Rails' association on a model instance HOT 1
- Support Ruby 2.4
- Error uninitialized constant #<Class:0x00007f96b6e8aa68>::Analyzable
- [BUG] empty space below the prompt when running in Rails project on WSL/Ubuntu HOT 2
- [BUG] ~/.jardrc does not seem to work with Rails Console HOT 1
- Keyword to output the underlying SQL query of Active Record relation to the console
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 ruby_jard.