Comments (8)
master works the same.
from ruby_jard.
Oh! Thank you, I think I've added that some time ago because pry or byebug didn't work right.
I can confirm it's working fine now.
Thanks again for your help and this amazing gem.
from ruby_jard.
I did tested with a Rails 6 app and cucumber. It works really fine to me.
Could you provide some screenshots so that I can have more information to debug better? And if it's possible, could you please test in some scenarios:
- Re-run that cucumber test, and use byebug instead.
- Run the same rails app with web server
from ruby_jard.
Tried it again, and I've attached screenshots. Byebug works fine, but jard doesn't work in either cucumber or the app.
from ruby_jard.
@chalmagean, when you press Ctrl+C, does it print out any messages? When you type something, does Jard echo any character you totally silent? If you type something meaningful, and press enter, what happens? And if it's possible, could you please test with a normal ruby file, instead of Rails stack?
Sorry, it's a lot of questions to ask, but I try a lot of scenarios, but sitll can't re-produce this bug 😞
from ruby_jard.
Ok, so here's more debugging.
The output is totally silent. But if I do write something and press enter, I get output back. This doesn't happen in a regular ruby file (so I'm guessing it's a gem in my rails app; I've also attached the Gemfile).
from ruby_jard.
Ahh. The symptom looks familar now. So, my guess is that there is something wrong happens with the STDOUT of your rails app so that the output from jard is accumulated, and release when it meets \n
. Cucumber may be the one did that. I did an enhancement with STDOUT redirection, but not yet released. Not 100% sure that it's relevant, but worth a try. Could you try again with master
branch?
gem 'ruby_jard', git: 'https://github.com/nguyenquangminh0711/ruby_jard', ref: 'master'
from ruby_jard.
Hi @chalmagean, sorry for letting you waiting. In your Gemfile. I tested my local rails app again using your Gemfile. It does meet the same issue as you described. In your Gemfile, this file creates a conflict with Jard: gem "rb-readline"
. That library claims to be backward-compatible with Ruby Readline's interfaces, but seems like it's not. Removing that line solved the issue.
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.