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
539 stars 129 forks source link

Unable to Substitute Environment Variables in GoLand #115

Closed deka108 closed 4 years ago

deka108 commented 4 years ago

Hi, I encountered a problem when trying to substitute environment variables using EnvFile 3.2.1 on GoLand 2020.1.2

The .env file content

CONFIG_FILE=$HOME/configs/config.yml

The EnvFile setup

image

Problem

When I run the code and prints the environment variable values using the above configuration, the $HOME in CONFIG_FILE is perceived as literal string instead of being expanded to the true absolute path of $HOME value.

Is it possible to configure GoLand EnvFile settings such that it automatically expands the special environment variables ($HOME, $PWD, or other custom ENV vars) ?

Thank you

Best,

deka108 commented 4 years ago

I got a notification to update .env plugin and this is now working perfectly