Skip to content

Virtual scroller enabled console truncates output but not associated prompt #7918

Closed

Description

@gtritchie

System details

RStudio Edition : Server (probably desktop, too, but I only tried server)
RStudio Version : 1.4.878
OS Version      : CentOS 7
R Version       : 3.6.2

Steps to reproduce the problem

This was noted during a PR #7568 (comment) . Still happens so opening an issue.

  • Turn on Virtual Scroller: Global Options / Console: "Limit console display to a subset of total content"
  • In the console, do:
for (i in 1:2000) cat(c(i, "\n"))

Describe the problem in detail

As expected, the output is truncated to about 1000 lines. However, the prompt for the command that generated the truncated output is still shown, making it difficult to realize content was dropped.

Describe the behavior you expected

Same behavior as when Virtual Scroller is off; the prompt gets truncated with the rest of the output.

Note, I don't know how important this is in real-world use. It seems like it could be troublesome, though.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting a RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. self-assigned this
    on Oct 15, 2020
  2. kevinushey commented on Oct 15, 2020

    @kevinushey
    Collaborator

    I'm still seeing code cut off in unexpected ways with this feature on:

    Screen Shot 2020-10-15 at 3 38 24 PM

    It seems like, after a particular piece of console input, we're only retaining the last 1000 lines of output.

    After reloading the UI (Right click -> Reload), I see after trying to scroll back to the top:

    Screen Shot 2020-10-15 at 3 42 14 PM

    So it seems like the console history is then truncated in the "regular" way.

  3. stale commented on Feb 4, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  4. added
    stale
    on Feb 4, 2021
  5. added this to the v1.4-juliet-rose milestone on Feb 9, 2021
  6. removed
    stale
    on Feb 9, 2021
  7. kevinushey commented on Feb 9, 2021

    @kevinushey
    Collaborator

    The original issue still reproduces for me.

  8. astayleraz commented on Mar 2, 2021

    @astayleraz
    Contributor

    Verified in Version 1.4.1606-1 with the setting on and off and that the truncated text will show when expected and hide when not expected. Added the following QA test/changes for this: https://github.com/rstudio/rstudio-ide-automation/pull/227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions