Closed
Description
Environment data
- VS Code version: 1.30.0
- Extension version (available under the Extensions sidebar): 2018.12.1
- OS and version: Windows 10
- Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
Expected behaviour
When selecting a pipenv virtual environment, if pylint is not installed, vscode asks if to install it. If selecting yes, vscode will attempt to activate the virtual env and then install pylint. With pipenv, activating is not needed, and indeed not recommended. Just running pipenv install is the correct action.
Output from my terminal window:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Home\Documents\vscode\flask_pg> & C:/Users/Home/.virtualenvs/flask_pg-Zt94nPwC/Scripts/activate.ps1
& : File C:\Users\Home\.virtualenvs\flask_pg-Zt94nPwC\Scripts\activate.ps1 cannot be loaded because running scripts is disabled on this system. For
more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:3
+ & C:/Users/Home/.virtualenvs/flask_pg-Zt94nPwC/Scripts/activate.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\Home\Documents\vscode\flask_pg> & pipenv install pylint --dev
Installing pylint…
Adding pylint to Pipfile's [dev-packages]…
Installation Succeeded
Pipfile.lock (7fbb99) out of date, updating to (662286)…
Locking [dev-packages] dependencies…
Success!
Locking [packages] dependencies…
Success!
Updated Pipfile.lock (7fbb99)!
Installing dependencies from Pipfile.lock (7fbb99)…
================================ 14/14 - 00:00:04
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.