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

do not support Inheritance #4

Closed
marshalys opened this issue Jun 15, 2021 · 1 comment
Closed

do not support Inheritance #4

marshalys opened this issue Jun 15, 2021 · 1 comment

Comments

@marshalys
Copy link

when use sample config from https://github.com/lightbend/config#inheritance like:

data-center-generic = { cluster-size = 6 }
data-center-east = ${data-center-generic} { name = "east" }
data-center-west = ${data-center-generic} { name = "west", cluster-size = 8 }

there is error:
*hocon.ParseError(&hocon.ParseError{errType:"missing comma!", message:"values should have comma or ASCII newline ('\n') between them"

@gurkankaymak
Copy link
Owner

thanks for reporting,

problem was only occurring if the inheritance used with a substitution, fixed this problem but your example is a short way of object concatenation which is not supported yet, opened a separate issue for supporting object concatenation at the same line #7

as documented in https://github.com/lightbend/config#inheritance your example's full form is as below, which is working now

data-center-generic = { cluster-size = 6 }
data-center-east = ${data-center-generic}
data-center-east = { name = "east" }
data-center-west = ${data-center-generic}
data-center-west = { name = "west", cluster-size = 8 }

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