rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.45k stars 205 forks source link

pycharm console multi-line print display issues? #275

Closed mercury19 closed 3 months ago

mercury19 commented 3 months ago

I'm trying to test my program where I have some bars, and to test I'm having it just print output instead of the doing the actual actions (copying and renaming files). I'm logging a lot to stdout between each bar() call, because I have a lot of nested loops but can't nest bars.

Because it's just printing, its moving very fast, and because it's a lot of lines of text, the bar keeps getting shoved off screen between calls. I could increase the sleep time from 0.005, but I don't want to wait too long when I do the actual run.

I would use bar.text but then I don't get the full logging features, and the text is generated in multiple functions from other files, so passing that all the way through is less than ideal.

I tested it out in a regular windows terminal and it displays mostly fine; the bar and printed text kind of "overlap", I guess? But its still visible throughout, so I guess it's a pycharm issue (again). I have "terminal emulation" enabled, and force_tty=True in my global config, but I'm wondering if there's some other setting or option I'm missing, or if it just is what it is?

mercury19 commented 3 months ago

Never mind just read the part about it just not ever working the same in pycharm, I'll have to tweak my code to see what delays work etc.