Open bronvic opened 1 year ago
I also just started having this problem. I think from upgrading pycharm to 2024.1.
Anyone know a solution for this?
EnvFile: 3.4.2 PyCharm: 2024.1 OS: Windows but running remote interpreter in WSL2
With "Enable EnvFile" in run config unticked, the error does not show up (but also env vars aren't loaded obviously...)
Well, a possible solution... Don't use EnvFile
at all... I've not noticed the option for "Paths to '.env' files" before, but it seems to work. Maybe it was recently introduced in Pycharm?
By the way, you might need to enable it in the "Modify options" dropdown at the top right of the window.
It's definitely not as nice as EnvFile because it immediately got tripped up on a commented out env var I had, but might be a solution for some people.
I'm trying to add an env file to my configuration and see an error:![2023-03-24_16-44](https://user-images.githubusercontent.com/8941791/227557445-f2286eb1-ab4e-41ee-a3a2-6baaff706d1f.jpg)
Error response from daemon: invalid environment variable: =::=::\
My configuration is a pytest run using docker-compose interpretatorThe thing is that I can use this file when running docker-compose manually. The error is present even if env file is empty![2023-03-24_16-49](https://user-images.githubusercontent.com/8941791/227558646-5a573f9c-e128-4519-9629-87e615ce667f.jpg)
I'm working on Windows using WSL2