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

Environments in paths defined in venvFolders not listed #24133

Closed
romanzdk opened this issue Sep 19, 2024 · 6 comments · Fixed by #24230
Closed

Environments in paths defined in venvFolders not listed #24133

romanzdk opened this issue Sep 19, 2024 · 6 comments · Fixed by #24230
Assignees
Labels
area-native-locator Issues with Rust based python locator bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@romanzdk
Copy link

VSCode used to show/list all my python virtual environments created via poetry located in /Users/romanzdk/Library/Caches/pypoetry/virtualenvs/ however since past few days it does not show any of them.

In the settings I have:

"python.venvPath": "/Users/romanzdk/Library/Caches/pypoetry/virtualenvs/",

and also tried playing with python.locator and python.defaultInterpreterPath.

There really are virtual environments (ls /Users/romanzdk/Library/Caches/pypoetry/virtualenvs/ | wc -l -> 80).

Version 1.93, macOS 14.3, poetry 1.8.3,

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 19, 2024
@karthiknadig
Copy link
Member

@romanzdk can you use this setting:
image

Also try toggeling python.locator between js and native and see if it helps.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Sep 19, 2024
@karthiknadig karthiknadig self-assigned this Sep 19, 2024
@romanzdk
Copy link
Author

Unfortunately that did not work. I tried putting there /Users/romanzdk/Library/Caches/pypoetry/virtualenvs/ as well as /Users/romanzdk/Library/Caches/pypoetry/virtualenvs/some-venv/bin/python. I played with locator already before with no luck.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Sep 20, 2024
@DonJayamanne
Copy link

Please also share the Output from Output > Python Locator.

@DonJayamanne DonJayamanne added the info-needed Issue requires more information from poster label Oct 1, 2024
@DonJayamanne DonJayamanne self-assigned this Oct 1, 2024
@romanzdk
Copy link
Author

romanzdk commented Oct 2, 2024

So I deleted all of the virtual envs and restarted VSC and it seems to work ¯_(ツ)_/¯.

@romanzdk romanzdk closed this as completed Oct 2, 2024
@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Oct 2, 2024
@DonJayamanne DonJayamanne reopened this Oct 3, 2024
@DonJayamanne DonJayamanne changed the title Not showing python interpreters Environments in paths defined in venvFolders not listed Oct 3, 2024
@DonJayamanne DonJayamanne added this to the October 2024 milestone Oct 3, 2024
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug area-native-locator Issues with Rust based python locator and removed triage-needed Needs assignment to the proper sub-team labels Oct 3, 2024
@DonJayamanne DonJayamanne self-assigned this Oct 3, 2024
karthiknadig added a commit that referenced this issue Oct 3, 2024
Fixes #24133

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
@amunger amunger added the verification-steps-needed Steps to verify are needed for verification label Oct 23, 2024
@amunger
Copy link

amunger commented Oct 23, 2024

@karthiknadig @DonJayamanne - any special type of environment to create in order to verify this?

@karthiknadig
Copy link
Member

No, just standard venv should be enough. Make sure you have at least 2 or more in a folder.

@rzhao271 rzhao271 removed the verification-steps-needed Steps to verify are needed for verification label Oct 23, 2024
@amunger amunger added the verified Verification succeeded label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-native-locator Issues with Rust based python locator bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants