rsalmei/alive-progress

pycharm console multi-line print display issues?

mercury19 opened this issue · 1 comments

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?

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.