chimpler / pyhocon

HOCON parser for Python
Apache License 2.0
508 stars 121 forks source link

Carolguo/fix override #308

Closed carolguo-dd closed 6 months ago

carolguo-dd commented 1 year ago

0.3.60 has introduced another problem.

{
     a = 3
    test = ${a}
    test = ${?b}
    result = ${test}
}

this used to work in 0.3.59 version, but now it breaks with

  File "/Users/carol.guo/.pyenv/versions/3.9.7/lib/python3.9/site-packages/pyhocon/config_parser.py", line 695, in resolve_substitutions
    raise ConfigSubstitutionException("Cannot resolve {variables}. Check for cycles.".format(
pyhocon.exceptions.ConfigSubstitutionException: Cannot resolve ${test}: (line: 7, col: 21). Check for cycles.
darthbear commented 6 months ago

Thanks for your contribution @carolguo-dd! Released new version 0.3.61