fehnomenal / intellij-direnv

direnv integration for JetBrains IDEs
MIT License
66 stars 21 forks source link

Not working running zsh? #15

Open bonkowski opened 3 years ago

bonkowski commented 3 years ago

Hi!

I'm not able to get this to work on my Mac using zsh. The direnv works as expected on the command line, but the env variables are not available from IntelliJ. Any idea why?

JiangHongTiao commented 9 months ago

I experience the same. It says it was reloaded, but when I run my Spring Boot application, variables are not there. Could someone have a look on this please? I'm also using a bit specific configuration, including different .env files and some env variables need to be computed (cat content of file):

#specify environment, by default it's 'dev'
export PROFILE=${PROFILE:-dev}

dotenv "infrastructure/environment/.env"
dotenv "infrastructure/environment/$PROFILE/.env"
source "infrastructure/environment/$PROFILE/.dynamic.env"