forked from DonJayamanne/pythonVSCode
-
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
Special symbols in .env file issue #1727
Labels
Milestone
Comments
Lol, looks like we'll need to reopen the VSCode issue as this is an upstream issue. I'll confirm this and reopen that issue, as the SET environment variables statement is generated by VSCode and not the Python extension. |
DonJayamanne
added
bug
Issue identified by VS Code Team member as probable bug
needs verification
area-debugging
labels
May 23, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment data
Actual behavior
When you use .env file in the VS Code project and CMD.exe as terminal (
"terminal.integrated.shell.windows": "cmd.exe"
) then for settings environment variables generated commands such ascmd /C "set "SECRET_KEY=uh_p8w$eo6%%tf5)d43b2y))88qxf2t9-s=osvq46u#3ya^p+"
without escaping special symbols.Expected behavior
Special symbols (such as
&
and^
) in the values of environment variables from the.env
file in theset
command should be escaped with the^
symbol.Steps to reproduce:
SECRET_KEY=uh_p8w$eo6%%tf5)d43b2y))88qxf2&t9-s=osvq46u#3ya^p+
"envFile": "${workspaceFolder}/.env"
in it (.env file used by default, so may be adding this line is not necessary)In the Terminal the following error appears:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: