-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Dropdown List of Interpreters in Virtual Environments is Jumbled #2223
Comments
I'm able to replicate this as follows:
"python.venvFolders": [
"envs",
".pyenv",
".direnv",
"/Users/donjayamanne/.local/share/virtualenvs"
],
"python.venvPath": "/Users/donjayamanne/.local/share/virtualenvs"
This causes the extension to look for virtual envs in the above directories. Two problems:
|
One problem we'll have is differentiating between PipEnv environments and standard virtual envs. According to the documentation pipenv environments are created in the standard directory (see Automatically creates a virtualenv in a standard location.) |
I cannot think of a solution that'll guarantee we'll be able to differentiate between pipenv and standard virtual envs. Suggestion: Leave the current behavior @Microsoft/pvsc-team |
Ok. Before switching to Pipenv, I had tried to resolve venv issues by extending Now, adding the fully qualified path in both Edit: Actually, the display of the venv type was correct Thanks. |
Environment data
VS Code version: Version 1.25.1 (1.25.1)
Extension version (available under the Extensions sidebar): 2018.7.0
OS and version: MacOS 10.13.6
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.0 (Homebrew/Pipenv)
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
Relevant/affected Python packages and their versions: ...
Actual behavior
Selecting "Python: Select Interpreter" from the Command Palette, the list of available virtual environments is jumbled, and includes CLang version information, followed by the type of virtual environment:
Also, in the dropdown list, the type of virtual environment is shown as "(virtualenv)", which is less helpful than the original "(pipenv)". The "pipenv" notation was correctly displayed in the February 2018 Release blog post.
Also, in the status bar, the Python version information does not include the type of virtual environment for the selected interpreter.
Expected behavior
The list items should not include Clang version information.
The status bar should indicate the type of virtual environment after the Python version, to help clarify which interpreter is active.
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: