Skip to content

Investigate how to lower the risk of losing the first pasted line into the REPL #22673

Closed

Description

For reported Python REPL users with different Operating Systems, there has been instances where the very first command that is sent to REPL is lost. Investigate problem and fix.

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    and removed
    feature-requestRequest for new features or functionality
    on Dec 18, 2023
  2. anthonykim1 commented on Feb 12, 2024

    @anthonykim1
    Author

    This long-standing problem existed with the nature of how commands were being sent to the REPL. Historically, the very first command sent to the Python REPL have shown to be swollen up entirely, or gets pasted twice both in the Terminal and Python REPL. Historically, we gave 'one-second' to send the command.

    With the Python REPL created/launched via using Terminal by nature of design, we do not have context of where or not Python REPL successfully launched or not. Now, with using 'onDidWriteTerminalData' from VS Code, we are able to watch whether Python REPL has launched or not by observing Python REPL marker >>> in Terminal.

    Also given that we are just launching Python REPL instance, we do not have any context of what is going on with launched Python REPL. Python extension would have much better context and control over what is going on inside REPL with "VS Code Native" REPL to be built in the future.

  3. added a commit that references this issue on Feb 16, 2024
    e53651d
  4. locked as resolved and limited conversation to collaborators on Mar 23, 2024
  5. added 2 commits that reference this issue on Mar 28, 2024
    d822c25
    c976f74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-replbugIssue identified by VS Code Team member as probable bugon-testplanAdded to test plantriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions