microsoft/RTVS

Updating progress bar erases existing output lines in REPL

hongooi73 opened this issue · 6 comments

Howdy!

Just something I noticed in the latest RTVS, as of VS 15.6.2.

If I have a dplyr operation that takes more than a certain length of time, a progress bar is displayed. RTVS will now update this correctly, as opposed to inserting newlines each time the bar gets extended. Hooray! Unfortunately, when it does this, any existing output lines in the REPL are wiped.

Here is a repro:

library(dplyr)
df <- rowwise(data.frame(a=1:1e4, b=1:1e4))
out <- do(df, { data_frame(.$a + .$b) })

If you run this, you should find that any existing output lines will be erased.

I'll look into this.

Possibly related: after this happens, the output text afterwards will sometimes be randomly coloured red.

image

I didn't get output erased, so it probably relates to odd colorization - which we were able to repro but like once or twice - #4065.

I've updated to the latest VS 15.6.7 (RTVS 1.3.40104.1351), and the problem is still there. Will the fix only go live in 15.7?

Yes, it is 15.7. Preview 1 should be public very soon.