Skip to content
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

Test 2.7 notification #17038

Closed
4 tasks done
kimadeline opened this issue Aug 19, 2021 · 1 comment
Closed
4 tasks done

Test 2.7 notification #17038

kimadeline opened this issue Aug 19, 2021 · 1 comment
Labels
testplan-item Test plan item/assignments for upcoming release
Milestone

Comments

@kimadeline
Copy link

kimadeline commented Aug 19, 2021

Refs: #17009

Complexity: 3

Create Issue


Requirements

  1. You will need two versions of python for this, Python 3 (doesn't matter which one), and Python 2.7. Options are:
    • You can install them both from python.org
    • On Mac/Linux, you can install one version of python using your local package manager, and use pyenv to install the other one
    • You can also go for a full pyenv solution on Mac/Linux or pyenv-win on windows and call pyenv install 3.9.4 2.7.18 to get the two versions.
  2. Make sure you have "python.experiments.optInto": ["All"], in your user settings. If not, add it and reload VS Code.
  3. Make sure python.defaultInterpreterPath entry in your user and workspace settings are at their default value python
  4. Set up a workspace with at least one Python file
  5. Use the following build of the Python extension: https://github.com/microsoft/vscode-python/suites/3575138020/artifacts/85925936

Scenario 1: Python 2.7 on load

  1. Create a folder with a python file

  2. In this folder, create a virtual environment with python 2.7: usr/bin/python2 -m virtualenv .venv

  3. Open the folder in VS Code

  4. Make sure that the extension loads, and that the virtual environment gets auto-selected

  5. Make sure that the following notification appears:
    image

  6. Make sure that Learn more redirects to https://github.com/microsoft/vscode-python/wiki/Limited-support-for-Python-2.7.

  7. Do NOT dismiss the notification or click on "Got it" (or it will never appear ever again), then close the folder and reopen it in VS Code

  8. Make sure that the notification appears again after the extension loads

  9. Do NOT dismiss the notification, close everything

Scenario 2: Python 3 on load + do not show again

  1. Create a folder with a python file
  2. In this folder, create a virtual environment with python 3: usr/bin/python3 -m venv .venv
  3. Open the folder in VS Code
  4. Make sure that the extension loads, and that the virtual environment gets auto-selected
  5. Make sure that the notification above doesn't appear
  6. Click on the environment in the status bar, and then select a 2.7 interpreter in the quickpick that appears (search for 2.7)
  7. Make sure that the notification appears
  8. Click on "Got it!"
  9. Close the folder and reopen it in VS Code
  10. Make sure that the 2.7 interpreter is selected when the extension loads, and that the notification above doesn't appear
@kimadeline kimadeline added the testplan-item Test plan item/assignments for upcoming release label Aug 19, 2021
@kimadeline kimadeline added this to the August 2021 milestone Aug 19, 2021
@kimadeline kimadeline self-assigned this Aug 19, 2021
@github-actions github-actions bot added triage-needed Needs assignment to the proper sub-team invalid-testplan-item and removed testplan-item Test plan item/assignments for upcoming release labels Aug 19, 2021
@kimadeline kimadeline removed the triage-needed Needs assignment to the proper sub-team label Aug 19, 2021
@github-actions github-actions bot added testplan-item Test plan item/assignments for upcoming release and removed invalid-testplan-item labels Aug 19, 2021
@kimadeline kimadeline changed the title Test plan for 2.7 notification Test 2.7 notification Aug 23, 2021
@kimadeline kimadeline removed their assignment Aug 23, 2021
@aeschli aeschli removed their assignment Aug 24, 2021
@rzhao271 rzhao271 removed their assignment Aug 24, 2021
@rzhao271
Copy link

The testplan item worked after using the extension from #17102 (comment)

@bamurtaugh bamurtaugh removed their assignment Aug 24, 2021
@brettcannon brettcannon removed their assignment Aug 24, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item Test plan item/assignments for upcoming release
Projects
None yet
Development

No branches or pull requests

5 participants