Skip to content

Test Plan Item: Smart Send in New Python REPL #23676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
anthonykim1 opened this issue Jun 24, 2024 · 0 comments
Closed
3 tasks done

Test Plan Item: Smart Send in New Python REPL #23676

anthonykim1 opened this issue Jun 24, 2024 · 0 comments
Labels
testplan-item triage-needed Needs assignment to the proper sub-team
Milestone

Comments

@anthonykim1
Copy link

anthonykim1 commented Jun 24, 2024

Refs: #23521
Reference to Smart Send itself: #21778

Complexity: 4

Create Issue


Thank you in advance for testing smart send in the new Python REPL.

Background Information

Smart send is a feature in VS Code Python extension where we "smartly" send minimum viable/executable code into the Python REPL when user shift+enter(Without explicit highlight/selection) to execute their Python code.
Smart send is now enabled for the newly launched experimental VS Code Native Python REPL.

Setup:

  1. Add "python.REPL.sendToNativeREPL": true, to your settings. Feel free to use the settings UI: Type repl and
    Screenshot 2024-05-24 at 3 01 37 PM toggle "on" to send Python commands to REPL.
  2. Please make sure you are in the latest pre-release of the VS Code Python extension.

Steps:

  1. Open Python file of your choice containing Python code (Please do not use Python2.7 as this has been officially outdated and will not work with Smart send and the underlying logic of using Python's standard library module AST)
  2. Make sure you have added setting to send commands to native REPL in your VS Code insiders.
  3. Shift+enter in multi-line code (such as in the middle of multi-line dictionary) and observe minimum executable amount of code is sent to native REPL with correct indentation.
  4. Try this with other code block such as Classes, single line.
  • Shift+enter ON the line of class definition (where it would say def) should send the whole class, whereas shift+enter INSIDE the class such as print statement inside class should send that minimum executable code (print statement only in this case).
  • Make sure you are getting correct indentation.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants