Code Monkey home page Code Monkey logo

Comments (8)

chalmagean avatar chalmagean commented on May 27, 2024 1

master works the same.

from ruby_jard.

chalmagean avatar chalmagean commented on May 27, 2024 1

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.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 27, 2024

I did tested with a Rails 6 app and cucumber. It works really fine to me.

Screenshot from 2020-09-19 15-07-46

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.

chalmagean avatar chalmagean commented on May 27, 2024

Tried it again, and I've attached screenshots. Byebug works fine, but jard doesn't work in either cucumber or the app.

2020-09-20 at 13 39
2020-09-20 at 13 38
2020-09-20 at 13 36

from ruby_jard.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 27, 2024

@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.

chalmagean avatar chalmagean commented on May 27, 2024

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).

ruby-class
ctrl-c
2020-09-20 at 18 20
jard_errors.txt
Gemfile.txt

from ruby_jard.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 27, 2024

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.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 27, 2024

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)

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.