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

JSON file in env var value not being parsed #47

Closed tmaslen closed 6 years ago

tmaslen commented 6 years ago

I have an env var that I'm storing a JSON object in. It works in my bash_profile like this...

export JSON='{ "foo": "bar" }'

IntelliJ picks it up, everything works fine except.

However, when I try to add it into IntelliJ using EnvFile I get this error...

Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value

Is this a known/expected issue with EnvFile? Will it ever support JSON as a value in an env var?

Thanks (really like EnvFile), Tom

ashald commented 6 years ago

Can you provide me with a concrete file contents? Does it look like?

JSON='{ "foo": "bar" }'

It's also important to know what parser do you use.

ashald commented 6 years ago

Closing due to inactivity.