Coder Social home page Coder Social logo

Comments (3)

havocp avatar havocp commented on July 24, 2024

I'm sorry for not replying sooner, github did not send me email for some reason.

Play 1.2.x does not use this library to parse application.conf - it uses a custom parser. Are you sure you aren't using Play 2?

I think the error message tells you what to do here. If you intend that value to be one big string, you would enclose it in double quotes.

If you are using Play 1.2, it will try to parse application.conf with its own syntax, and the config lib will try to parse it with a different syntax. So that's a problem. You will have to change the config filename you use with the config lib probably.

from config.

chungonn avatar chungonn commented on July 24, 2024

I am experimenting with Play 2 and it was then I discovered about Config and I wanted to bring these good stuff to Play 1.2.x. Yes, the error message is clear and I wonder if it would be possible to lift the double quotes restriction as I need to declare many JPA entries also the inability declare multi line values for each key makes it very difficult to read and edit.

from config.

havocp avatar havocp commented on July 24, 2024

There is an issue #11 open for multi-line strings. I don't know of a good way to lift the double quotes restriction, outside of quotes many characters have syntactic meaning, so if you use those characters, they need to be quoted. But ideas are always welcome, check out the spec in HOCON.md and think about possible changes.

from config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.