pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

Substitution inside include not working

Open ankiiitraj opened this issue 3 years ago • 2 comments

Substitution inside include is not working.

I confirmed it by running the same conf on pyhocon and hocon-parser (npm).

e.g.

include required(file(${CONF_HOME}/base.conf))

throws this error

pyparsing.ParseSyntaxException: Expected Re:('"(?:[^"\\\\\\n]|\\\\.)*"[ \\t]*'), found '$'  (at char 22), (line:1, col:23)

e.g. (added quotes)

include required(file("${CONF_HOME}/base.conf"))

throws this error

FileNotFoundError: [Errno 2] No such file or directory: '${CONF_HOME}/base.conf'

ankiiitraj avatar May 07 '22 15:05 ankiiitraj

We would also like to get this fixed.

blutsvente avatar Apr 03 '24 12:04 blutsvente