-
Notifications
You must be signed in to change notification settings - Fork 121
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
Appending to a nested array causes an exception in pyparsing due to wrong type #103
Comments
@sanzinger, this is your code. Perhaps you could help out with this one? |
i was trying to scan a play config file with below values in it:
I got the same error as above.
it looks like += is not being parsed correctly. |
not sure if it's the same root cause, but I'm hitting the same exception with a
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pyparsing.lineno expects the second parameter to be a string.
However, in 2 locations within config_parser.py (here, and here), you set the
instring
parameter for aConfigSubstitution
to a boolean instead of a string, causing pyhocon to crash (instead of giving the expected error message) in cases where the key cannot be resolved.Example:
And code:
Causes:
_Aside_
Further, I'm not sure that this should be raising an exception anyway.
For example:
is allowed in the HOCON spec.
It seems to me that pyhocon should be able to resolve
foo.bar
. However that is another issue (possibly #97), and fixing this issue will at least make the code consistent with this case (which the HOCON spec says is equivalent):A shout out to American Fuzzy Lop which helped me find these issues.
The text was updated successfully, but these errors were encountered: