Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitution inside include not working #283

Open
ankiiitraj opened this issue May 7, 2022 · 1 comment
Open

Substitution inside include not working #283

ankiiitraj opened this issue May 7, 2022 · 1 comment

Comments

@ankiiitraj
Copy link

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'
@blutsvente
Copy link

We would also like to get this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants