如何解决 config.hocon 文件中的“期望右括号”异常?

问题描述

我有一个 config.hocon.sample 文件,其中包含以下配置:

        minBackoff = {{enrichStreamsOutMinBackoff}}
        minBackoff = ${?ENRICH_STREAMS_SOURCE_SINK_BACKOFF_POLICY_MIN_BACKOFF}
        maxBackoff = {{enrichStreamsOutMaxBackoff}}
        maxBackoff = ${?ENRICH_STREAMS_SOURCE_SINK_BACKOFF_POLICY_MAX_BACKOFF}

但是,当我尝试通过 sbt 运行代码时,会出现以下错误

$ sbt "project kinesis" "runMain com.sNowplowanalytics.sNowplow.enrich.stream.KinesisEnrich --config config/config.hocon.sample --resolver file:config/iglu_resolver.json  --enrichments file:config/enrichments/"
[info] welcome to sbt 1.3.12 (Oracle Corporation Java 11.0.9)
[info] loading settings for project global-plugins from idea.sbt ...
[info] loading global plugins from /home/knoldus/.sbt/1.0/plugins
[info] loading settings for project enrich-build from plugins.sbt ...
[info] loading project deFinition from /home/Projects/sNowplow/enrich/project
[info] loading settings for project root from build.sbt ...
[info] loading settings for project bench from build.sbt ...
[info] resolving key references (12067 settings) ...
[info] set current project to enrich (in build file:/home/Projects/sNowplow/enrich/)
[info] set current project to kinesis (in build file:/home/Projects/sNowplow/enrich/)
[info] running com.sNowplowanalytics.sNowplow.enrich.stream.KinesisEnrich --config config/config.hocon.sample --resolver file:config/iglu_resolver.json --enrichments file:config/enrichments/
config/config.hocon.sample: 120: expecting a close parentheses ')' here,not: '{'

Exception: sbt.TrapExitSecurityException thrown from the UncaughtExceptionHandler in thread "run-main-0"
[error] Nonzero exit code: 1
[error] (Compile / runMain) Nonzero exit code: 1
[error] Total time: 4 s,completed 19-Apr-2021,4:34:23 PM

有什么解决办法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)