-
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
=
and all following contents discarded from .env
environment variables
#23078
Comments
.env
discards all contents following =
.env
have all contents following =
discarded
Compounded with the behavior of dotenv described at #22982, this causes all sorts of unexpected behavior. I couldn't tell where my environment variables were being set within a Codespace and was banging my head against this before I opened up microsoft/TypeChat#211. |
.env
have all contents following =
discarded=
and all following contents discarded from .env
environment variables
This is actually an issue on VS Code: microsoft/vscode#197603, closing as duplicate. We encourage you interact with that issue to raise priority. |
With microsoft/vscode#207889, this will be fixed in the March 2024 release of VS Code. |
Thanks! |
It appears that the contents of variables loaded from
.env
(orenvFile
) are incorrectly set if they contain an=
within the value.To repro this, add the following
.env
file to the top level of a workspace.Then create a new terminal and run the following commands
Current Behavior
Expected Behavior
The text was updated successfully, but these errors were encountered: