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

Python venv not recognized when in multi root workspace #6

Open
thomasfinstad opened this issue Jan 11, 2023 · 1 comment
Open

Python venv not recognized when in multi root workspace #6

thomasfinstad opened this issue Jan 11, 2023 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@thomasfinstad
Copy link

Ha have a multi root workspace where one of the folders (where I am developing the python script) has a .venv folder, recognized by vscode.

When running the quick discover function the venv is not recognized and the extension tries to run homebrew python instead.
This might be because the folder with the venv is not the first one in the list, when I try the "select installer" option it only seems to look in the first folder.

I recreated this by

  1. creating a new workspace,
  2. adding one folder with no venv
  3. adding another folder, and creating a venv in it
  4. add another folder with no venv
  5. create a python file in the folder with a venv
  6. make sure vscode notice the venv and behaves as expected (I just made the venv with a python version that is not my default so it was easy to see that it was active)
  7. running auto discover it says my default python needs to install it instead of the venv
  8. trying to select installer only shows pip from the first folder in the workspace list
@vemel
Copy link
Collaborator

vemel commented Mar 31, 2023

Multi-root workspace is currently not supported. Sorry for the late response.

@vemel vemel added the 🐞 bug Something isn't working label Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants