Giter Site home page Giter Site logo

Comments (6)

feliperaul avatar feliperaul commented on May 21, 2024

An update: while the Chrome tab keeps on spinning, I got this error message:

image

from ruby_jard.

feliperaul avatar feliperaul commented on May 21, 2024

Another update: I can confirm that with binding.pry everything is working as expected.

from ruby_jard.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 21, 2024

Hi @feliperaul, let me confirm:

  • The slowness happens when you inject jard, refresh the page on chrome, inspect, type exit, remove jard. Then, the next page is unacceptably slow right?
  • Or, you inject jard, inspect, then continue and the page load is slow?

The message is interesting. That event should only be raised then the terminal emulator is resized.. Does it popup when you are in Overmind, or in a vanilla terminal emulator?

from ruby_jard.

feliperaul avatar feliperaul commented on May 21, 2024

Hi @nguyenquangminh0711

First option: The slowness happens when I inject jard, refresh the page on chrome, inspect, type exit, remove jard. Then, the next page is unacceptably slow.

About the message, I'm not in front of the computer right now, but if I recall correctly, it was a vanilla Rails terminal.

What happens is, with iTerm2, I use CMD SHIFT ENTER all the time to resize the terminal windows to occupy fullscreen. I probably did that with jard even on the vanilla rails terminal, because when jard is activated only half the screen is too small for it.

Let me know if I can help debugging any further!

from ruby_jard.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 21, 2024

Thank you. I think that's enough for me to debug. At the first glance, I think there are some conflicts between rails autoreload so that tons of scripts are running forever. During that time, when you resize, a race condition happens and pop that error out. I never go into this scenario before. Gonna test it out and let you know if I found some clues 😉

from ruby_jard.

nguyenquangminh0711 avatar nguyenquangminh0711 commented on May 21, 2024

Hi @feliperaul, I tested on my local, and I can confirm that it's truly a bug. The slowness is significant. I implemented a fix, and the situation is good (for me). Could you test it again by pointing jard to my branch?

gem 'ruby_jard', git: 'https://github.com/nguyenquangminh0711/ruby_jard', ref: 'bug/fix-slowness-after-exit'

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.