Seems like Typesafe Config chokes on "BOM'ed" UTF-8 encoded files.
Clone this repo and follow these steps to reproduce the issue:
-
either:
- run with
sbt run
- observe unexceptional behavior
- copy
application.conf.bom
toapplication.conf
(replacing the existing) - run with
sbt run
- observe exceptional behavior (parse error)
- run with
-
or: 0. copy
application.conf.nobom
toapplication.conf
(replacing the existing)- run with
sbt run
- observe unexceptional behavior
- edit
application.conf
with Windows Notepad- move first line to second line
- insert a # in the first line
- run with
sbt run
- observe exceptional behavior (parse error)
- run with
(The application.conf.* files are found in src/main/resources
)