HOCON icon indicating copy to clipboard operation
HOCON copied to clipboard

include statement being ignored.

Open ChrisLusena opened this issue 5 years ago • 3 comments

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 avatar May 25 '20 21:05 ChrisLusena

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.

ChrisLusena avatar May 25 '20 22:05 ChrisLusena

AFAIK its by design, consider to use INCLUDE REQUIRED instead

holonsoftFounder avatar Apr 05 '22 12:04 holonsoftFounder

@holonsoftFounder care to exlain?

OnurGumus avatar Dec 31 '22 12:12 OnurGumus