BelaPlatform / Bela

Bela: core code, IDE and lots of fun!
Other
490 stars 139 forks source link

IDE: autoscroll is inconsistent during long builds #186

Closed apmcpherson closed 7 years ago

apmcpherson commented 7 years ago

After make coreclean or a long build like d-box, the log at the bottom does not scroll consistently with new text. Sometimes several files will build and the log will be off the bottom, only for the display to jump back to the right place a few lines later. The result is that without manually scrolling, you can't tell if one file is taking a long time to build or whether there are others being built.

giuliomoro commented 7 years ago

were you scrolled all the way to the bottom to being with?

apmcpherson commented 7 years ago

Yes. I tried three cases: don't touch it at all (starting from clean console); scroll down to the bottom so that the terminal pops up; scroll down to the last output but not including the terminal. Same behaviour, though not consistent, happens each time.

Sometimes it will start scrolling correctly for a while, only to stop for a while and jump back to the bottom sometime later. Sometimes the log will obscure the terminal line, sometimes not.

apmcpherson commented 7 years ago

Same behaviour applies to output generated from the Bela program. For example, see FFT-phase-vocoder.

giuliomoro commented 7 years ago

may be related with this https://github.com/BelaPlatform/Bela/issues/15

LBDonovan commented 7 years ago

Ok so I think this is mostly intended behaviour at the moment, though it could change.

What happens is, if you scroll the console off the bottom manually the autoscroll gets turned off, so the user has control of the console's scroll (as in #15 ). This is true until either an error appears (i.e a console entry which is red or yellow - this includes Bela's stderr) or a notification appears (a console entry which starts off green and then fades to white and (for some) disappears, e.g Building Project, Build Finished, Running Project, Stopping Bela etc). These cause the console to scroll right to the bottom to bring themselves into view.

My rational is that you wouldn't want to miss it when one of these happens, so it should be scrolled into view. But I get how it can be annoying, it annoys me sometimes. I could easily turn this off, and just switch the autoscroll off for good when the user scrolls up...

LBDonovan commented 7 years ago

Hmm, I can't reproduce the build log scrolling out of view during a core build. Browser info would be useful.

LBDonovan commented 7 years ago

Ok, found the problem.

There is a bug with chrome where it doesn't report the scroll position properly if the user has zoomed away from 100%. It can be fixed by pressing cmd+0 which puts zoom to 100%. I had a go at fixing it but it's not trivial, I would suggest we leave it for this image and revisit it later.

giuliomoro commented 7 years ago

So this is a Chrome issue. Make sure zoom is 100%. Closed.