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
{{ message }}
Repository navigation
Unable to get full environment variable spread on multi line #850
EXAMPLE_VAR='very long value
with new line , we need to get all the lines'
Output
EXAMPLE_VAR: 'very long value
Expected output
EXAMPLE_VAR: very long value
with new line , we need to get all the lines
Using load_dotenv to load .env work as expected
import os
from dotenv import load_dotenv
load_dotenv(dotenv_path="example.env")
variable = os.getenv("EXAMPLE_VAR")
print("EXAMPLE_VAR:", variable)
## Output
EXAMPLE_VAR: very long value
with new line , we need to get all the lines
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
I just hit this issue and assumed something was wrong with my environment, but no, it's the VS Code debugger not parsing the environment variable. I disabled the Python Environments extension, but it didn't help.
I've don't have issues with multiline environment variables in other contexts (uv, docker compose, nodemon, dotenv, etc.), so I'm confused as to whether VSCode is using an existing library or rolling their own parser?
Activity
eleanorjboyd commentedon Oct 29, 2025
is this with or without the python environments extension installed? Can you try disabling it and see if that makes a difference
vuthanhdatt commentedon Oct 31, 2025
disable python environments extension still facing same error
github-actions commentedon Nov 30, 2025
Hey Eleanor Boyd (@eleanorjboyd), this issue might need further attention.
vuthanhdat (@vuthanhdatt), you can help us out by closing this issue if the problem no longer exists, or adding more information.
github-actions commentedon Dec 30, 2025
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
Happy Coding!
ShadowLNC commentedon Jan 14, 2026
I just hit this issue and assumed something was wrong with my environment, but no, it's the VS Code debugger not parsing the environment variable. I disabled the Python Environments extension, but it didn't help.
I've don't have issues with multiline environment variables in other contexts (
uv,docker compose,nodemon,dotenv, etc.), so I'm confused as to whether VSCode is using an existing library or rolling their own parser?Unclear if related to microsoft/vscode-python#18307
github-actions commentedon Feb 14, 2026
Hey Rich Chiodo (@rchiodo) Eleanor Boyd (@eleanorjboyd) @Copilot, this issue might need further attention.
vuthanhdat (@vuthanhdatt), you can help us out by closing this issue if the problem no longer exists, or adding more information.