-
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
.env file not working on run current file action #11174
Comments
@fmanno This is not currently supported, switching this to an enhancement. |
We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision. |
@karthiknadig Thanks for considering this. I think it should behave this way otherwise it's inconsistent with when the debugger is run and could be confusing. |
Closing as a dup of #944 |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): jedi == Falsepython.languageServer
setting: MicrosoftExpected behaviour
When clicking the green "Play" button on the top right of the editor window I expect the current python file to be executed and the .env file in the workspace to be loaded adding the environment variables in that file to the environment where python executes the file.
Actual behaviour
.env file doesn't seem to be loaded because the expected environment variables are not available in the python script
Steps to reproduce:
Output from
Console
under theDeveloper Tools
panel:If instead I run the same file with the debugger I get the expected result
I have already read all the discussion on #944 and I don't think it's the same. I observe the same as #9358 which I think was closed down prematurely.
The text was updated successfully, but these errors were encountered: