-
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
Better documentation about .env file #24034
Comments
Honestly, I hate to be a hater and complain, but the
|
Thanks for the feedback there @benglewis |
Maybe, for situations where it is not viable to change/edit code to introduce |
This feature cost me hours. We have an app that uses So spend forever trying to track down where the hell the old value was coming from. Eventually fastapi/fastapi#4251 led me to #23280 (comment) . Especially annoying as when I tried to use the vscode debugger to figure it out, of course the issue did not exist (as it was reloading the .env file each launch). The other issues are closed, but I would beg you to reconsider having this on by default without any indication it happens unless you read the entire extension documentation. At least add a little "loaded .env variables" or something at the start of a terminal boot as a hint! |
Just to clarify @anthonykim1 , my feedback suggesting that it might be useful was regarding allowing a user to actively choose to turn it on and "opt-in". It should 100% definitely not be the default. Additionally, a notification when opening a shell that the .env was loaded into environment variables with a link to the setting, would probably help people that are stuck after having enabled it by mistake |
To add to this, in non-Python projects, activating one time a Python interpreter causes all subsequent terminal sessions to load these old state values with no way (to my knowledge) to remove them except uninstalling the extension. In a non-python project the interpreter will almost never come up automatically to refresh the values except by hand. |
My current workaround is disabling the Python extension for non-Python projects in that workspace. Prior to finding the cause, I just used an external terminal as a workaround. But it definitely caused a few headaches every now and then trying to find the issue. |
#23280 (comment)
and
#23856
We should have better documentation regarding .env file.
The text was updated successfully, but these errors were encountered: