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

Bug: missing include support #35

Open
Andrei-Pozolotin opened this issue Mar 26, 2018 · 1 comment
Open

Bug: missing include support #35

Andrei-Pozolotin opened this issue Mar 26, 2018 · 1 comment

Comments

@Andrei-Pozolotin
Copy link

here:
https://github.com/akka-js/shocon#shocon
it says drop-in replacement but that that is not true :-)

drop-in replacement wherever the Java implementation is not available

example:

    val text = """
    include "main.conf"
    """
    val config = ConfigFactory.parseString( text )

execution result:

java.lang.Error: (keyValueSeparator ~/ jsonExpr | obj.rep(1, sep = nlspace) ~ space):4:24 ..."\n    "
        at java.lang.StackTrace$.currentStackTrace(Unknown Source)
        at java.lang.Throwable.fillInStackTrace(Unknown Source)
        at java.lang.Throwable.init(Unknown Source)
        at java.lang.Error.init(Unknown Source)
        at java.lang.Error.init(Unknown Source)
        at eu.unicredit.shocon.package$Config$.apply(Unknown Source)
        at com.typesafe.config.ConfigFactory$.parseString(Unknown Source)
        at com.carrotgarden.scalor.test.Main$.main(Unknown Source)
        at <none>.main(Unknown Source)
        at <none>.__libc_start_main(Unknown Source)
        at <none>._start(Unknown Source)
@andreaTP
Copy link
Member

this is correct, I will rephrase drop-in replacement with something, obviously in this case keeping the semantics over Scala.Js is extremely complicated and full of caveats

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