ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
533 stars 125 forks source link

Error response from daemon: invalid environment variable: =::=::\ #216

Open bronvic opened 1 year ago

bronvic commented 1 year ago

I'm trying to add an env file to my configuration and see an error: Error response from daemon: invalid environment variable: =::=::\ My configuration is a pytest run using docker-compose interpretator 2023-03-24_16-44

The 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

I'm working on Windows using WSL2

TimChild commented 2 months 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

image

With "Enable EnvFile" in run config unticked, the error does not show up (but also env vars aren't loaded obviously...)

TimChild commented 2 months ago

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.

image