-
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
Add ~/.virtualenvs
to python.venvFolders
#4642
Comments
Have the same issue with virtualenvwrapper. Steps to reproduce this issue: # install virtualenvwrapper
pip install virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
# make venv
mkvirtualenv foo
# create dirs
mkdir -p foo/.vscode
cd foo
# create vscode config with venv set
cat <<EOF > .vscode/settings.json
{
"python.pythonPath": "~/.virtualenvs/foo/bin/python"
}
EOF
# create python file
echo "print('foo')" > foo.py
# open vscode
code . After vscode has opened, click on Weirdly enough, the terminal recognizes the virtualenv correctly. |
Stumbled on this today too using virtualenvwrapper. #808 seems to be a similar issue. |
So it seems that setting but that seems not what we want. We just want the module to be installed in the current environment. So that is slightly weird. Let's try. I have set
and not globally. |
@brettcannon yes that worked for me. |
.virtualenvs
to python.venvFolders
.virtualenvs
to python.venvFolders
~.virtualenvs
to python.venvFolders
~.virtualenvs
to python.venvFolders
~/.virtualenvs
to python.venvFolders
Prescribed Solutions:
Note:
|
Do note that |
Also add whatever the following tools use:
|
Can probably also do #118 at the same time since it mostly likely should be done in the same place in the code. It also will let us say in the docs in |
Todo (summary of comments above):
|
Aren't these out of scope (i.e. Separate issues)
|
@DonJayamanne they aren't out of scope if those are the projects the reasons we are adding these defaults. 😁 The key point is to know whether we know we need to add more or whether this covers everything. And the |
And #5899 was closed because Luciana's specific ask in that issue was "support pipenv and virtualenvwrapper" which this might implicitly cover, otherwise we can do separate issues if necessary. |
After discussion with @brettcannon and @luabud we won't add pipenv's |
@kimadeline Can we document the reason (or work around) in #5899 |
Issue Type: Bug
by default, the command ran when installing Pylint defaults to 'python.exe -m pip install -U pylint --user' and gives the error 'Can not perform a '--user' install. User site-packages are not visible in this virtualenv.'
Extension version: 2019.2.5433
VS Code version: Code - Insiders 1.32.0-insider (c23e8995f6e31b3540e0a2c3d4fdc58e6d7cba53, 2019-03-04T17:23:10.903Z)
OS version: Windows_NT x64 10.0.16299
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: