Skip to content

Test: Warning message and setting for invalid Smart Send #22536

Description

Refs: #22340

Complexity: 3

Create Issue


Thank you for testing warning message and setting for smart send!

Background Information

In some scenarios, users have deprecated Python code (such as Python 2) code or other language code (such as Rust) in their Python file. Python AST that is used for Smart Send logic (where we smartly figure out minimum executable code in a given Python file) fails to parse and compute the logic for deprecated and invalid Python code.

In that case, we would want to let user know that Python is unable to parse their currently opened Python file and hence unable to use smart send feature.
We also want to provide readily accessible button that user can press to simply disable the Smart Send feature, and provide option for them to change that in the extension user&workspace setting.

Setup:

  1. Make sure to have latest version of Python extension installed.
  2. Make sure you have Python in your computer

Steps

  1. Open or create a Python file
  2. Try writing some deprecated, invalid Python code or inserting some other language code in your Python file.
  3. Shift+enter and see if you get the warning message and a button to disable Smart Send
  4. Press on the button and shift+enter again to see if that disabled Smart Send

Description on what Smart Send does is provided here: #21778 and #21838

Thank you for testing!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions