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

include statement being ignored. #294

Open
ChrisLusena opened this issue May 25, 2020 · 3 comments
Open

include statement being ignored. #294

ChrisLusena opened this issue May 25, 2020 · 3 comments

Comments

@ChrisLusena
Copy link

I have a file that starts with
{
include 'site.conf'
// more stuff
}
none of the data the give file is being imported. I have tried multiple variations of syntax on
https://github.com/lightbend/config/blob/master/HOCON.md#include-syntax

you mention that there is a include file syntax in your specification but give no direction as to what it is I assumed that it would be from the parent source but I guess not

@ChrisLusena
Copy link
Author

After further examination, I was using HoconParser.Parse(), I see that one needs to provide a include callback. It would be nice if this threw an exception instead of silently failing. It would cut back on PEBKAC in my case.

@holonsoftFounder
Copy link

AFAIK its by design, consider to use INCLUDE REQUIRED instead

@OnurGumus
Copy link

@holonsoftFounder care to exlain?

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

3 participants