-
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
no need to activate pipenv #3743
Comments
Interesting, and thanks for the report @BMBurstein. The failure I see above is actually a known issue to do with the initial install of Powershell (see #2559) - when you use Powershell as your console provider in VS Code, you can experience exactly this failure on a new Windows install. You can work around this specific problem by opening a Powershell window as administrator and typing the command: Set-ExecutionPolicy RemoteSigned -Force ...and then close and restart all instances of VS Code. (Another workaround is to set your default shell to something other than Powershell). As for the install process, your comment seems to pose a difference in how I am leaving this open as a feature enhancement that we can decide on for the next few sprints. |
Agreed. The underlying problem is the fact that the environment isn't being activated due to PS permissions.
You can always disable environment activation globally or for this specific workspace. Just open your user or workspace |
I understood that the activation failed due to some other issue, and I was not reporting it here since it was irrelevant to the actual issue. As you can see the installation worked anyway, since activation is not needed when using pipenv. |
I didn't realize that the activation was part of the terminal launching. I thought it was part of the pylint installation. |
Dup of #2855 |
Environment data
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:
The text was updated successfully, but these errors were encountered: