You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled exception. Hocon.HoconParserException: Invalid substitution declaration. A cyclic substitution loop is detected in the Hocon file.. At path 'c.q.a', line 8, position 14.
---> Hocon.HoconException: A cyclic substitution loop is detected in the Hocon file.
at Hocon.Parser.ResolveSubstitution(HoconSubstitution sub)
at Hocon.Parser.ResolveSubstitutions()
--- End of inner exception stack trace ---
at Hocon.Parser.ResolveSubstitutions()
at Hocon.Parser.ParseText(String text, Boolean resolveSubstitutions, HoconIncludeCallbackAsync includeCallback)
at Hocon.Parser.Parse(String text, HoconIncludeCallbackAsync includeCallback)
@Aaronontheweb I have added test to verify this works.
On the dev branch before I have fixed few issues in the milestone, this test was failing (I have just checked that). But after applying latest fixes, this does not reproduce anymore.
I think that this is related to #127 where I have added deep cloning of substituted values - so now when performing substitution it will always be different values in different places, and no cycles are possible.
Parsing following valid config
results in exception
EXPECTED:
The text was updated successfully, but these errors were encountered: