I'm working in a ruby cli and printing large objects. At a certain size, the UI just stops printing mid-string and hangs. I've tested it out locally just by making big strings, and it appears to be somewhat varied in how big the line is before it blows up.
irbputs "X" * 1000. This one worksputs "X" * 10000. This one breaks. UI appears to hang. Opening developer tools shows the console error "Uncaught TypeError: Cannot read property 'wcNode' of undefined".Substitute larger numbers if 10000 works for you. In my testing I've seen it handle 5000 just fine some times and blow up at 1250 other times.
Note that I am able to echo large lines from bash, cat a long single-line file, etc no problem. So there might be something unique to ruby going on here?
Found #1681, which seems to be the same as this.
Not sure if I agree with the resolution there linking it to #687. #687 is about things being slow whereas this is about things outright breaking.
You know what, I might need to take back my last comment. I tried this again on 1.3.2, and am no longer able to reproduce the exception. I mistook slow output for another occurrence of the exception. It eventually finished.
Reproduced on v1.3.3.
I'm reopening it because of your good and simple HTR!
And #687 seems to be more a general performance question.
Hyper version: 1.4.8 (stable)
OS: macOS 10.12 on a MacBook
echo {0..100000} hangs up Hyper for >10 minutes. The macOS terminal doesn't even lag.
echo {0..10000} takes about 5 seconds for me to display.
Output of time echo {0..10000}:
real 0m0.047s
user 0m0.037s
sys 0m0.001s
Just tried the pre-release 2.0.4.
It has very little overhead for displaying long lines.
echo {0..1000000} is not a problem anymore.
Thank you for you feedback
Most helpful comment
Reproduced on v1.3.3.
I'm reopening it because of your good and simple HTR!
And #687 seems to be more a general performance question.