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

Duplicate the interpreter path after switch Python environment. #24318

Closed
linette-zyy opened this issue Oct 17, 2024 · 5 comments · Fixed by #24321
Closed

Duplicate the interpreter path after switch Python environment. #24318

linette-zyy opened this issue Oct 17, 2024 · 5 comments · Fixed by #24321
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on verified Verification succeeded
Milestone

Comments

@linette-zyy
Copy link

Environment data

  • Pylance version: v2024.10.100 (pre-release)
  • Python version: v2024.17.2024101501 (pre-release)
  • Visual Studio Code - Insiders: 1.95.0-insider

Repro Steps

  1. Install different version Python
  2. Open a folder and add a python file
  3. Click the lower right corner to switch different Python
    Image

Actual behavior

After switch another python. The interpreter path was duplicated
Image

@rchiodo
Copy link

rchiodo commented Oct 17, 2024

Thanks for the issue. This functionality is handled by the Python extension, transferring.

@rchiodo rchiodo transferred this issue from microsoft/pylance-release Oct 17, 2024
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Oct 17, 2024
@karthiknadig
Copy link
Member

@linette-zyy This looks like you might have a broken cache. Can you clear it by running Python: Clear cache and Reload.

@karthiknadig karthiknadig self-assigned this Oct 17, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Oct 17, 2024
@linette-zyy
Copy link
Author

@karthiknadig
After running Python: Clear cache and Reload
It showed
Image
But change environment, it still like this.
Image

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 18, 2024
@karthiknadig
Copy link
Member

@linette-zyy Thanks for providing the details, I was able to reproduce this issue.

@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-environments Features relating to handling interpreter environments needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Oct 18, 2024
@anthonykim1
Copy link

I dont think issue is there for latest pre-release now

@anthonykim1 anthonykim1 added the verified Verification succeeded label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants