Support for Virtual environment activation with /bin/sh
#18936
Labels
area-terminal
community ask
Feature request that the community expressed interest in
feature-request
Request for new features or functionality
Issue Type: Bug
Behaviour
Expected vs. Actual
I expect the virtual environment to be activated with the proper shell command, but instead the output is:
$ source /[redacted]/env/bin/activate /bin/sh: 1: source: not found
This problem can be resolved by using
.
(POSIX compliant) instead ofsource
(Bash specific). For example:. ./env/bin/activate
Steps to reproduce:
Switch Linux shell profile to
sh
.Open the integrated terminal in any Python workspace that has a virtual environment installed.
Diagnostic data
python.languageServer
setting: PylanceUser Settings
Extension version: 2022.4.1
VS Code version: Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:49:24.808Z)
OS version: Linux x64 5.13.0-39-generic
Restricted Mode: No
The text was updated successfully, but these errors were encountered: