You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: If I have an environment variable with an equals sign (=) character in its value and a virtual environment is active, I expect its value to not change when loaded by the vscode terminal
Actual: When the .env file is loaded, for each variable that has an equals sign (=) in its value, the value is "cropped" right before the first instance of the equals sign.
For example a connection string variable for azure cosmos would be something like: COSMOS_NOSQL_URL="AccountEndpoint=https://localhost:8081/;AccountKey=......
After the autoloading, if I run echo $COSMOS_NOSQL_URL the returned value is only AccountEndpoint
Steps to reproduce:
Create a project with a .env file in its root directory with a variable with an equals sign (=) somewhere in its value
Create a virtual environment for the new project and open it on vscode
Make sure the config python.envFile is set to ${workspaceFolder}/.env
Open a new terminar in vscode and run echo $<your variable name> and observe the output
Diagnostic data
Python version (& distribution if applicable, e.g. Anaconda): 3.12.1
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Pyenv
Value of the python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Type: Bug
Behaviour
Expected vs. Actual
Expected: If I have an environment variable with an equals sign (=) character in its value and a virtual environment is active, I expect its value to not change when loaded by the vscode terminal
Actual: When the .env file is loaded, for each variable that has an equals sign (=) in its value, the value is "cropped" right before the first instance of the equals sign.
For example a connection string variable for azure cosmos would be something like:
COSMOS_NOSQL_URL="AccountEndpoint=https://localhost:8081/;AccountKey=......
After the autoloading, if I run
echo $COSMOS_NOSQL_URL
the returned value is onlyAccountEndpoint
Steps to reproduce:
${workspaceFolder}/.env
echo $<your variable name>
and observe the outputDiagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2024.2.1
VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:42:16.599Z)
OS version: Linux x64 6.5.0-21-generic
Modes:
The text was updated successfully, but these errors were encountered: