【发布时间】:2016-05-30 10:24:44
【问题描述】:
我使用 Homebrew 安装了 sbt,它安装正确。我能够构建项目并完成所有 sbt 任务。但是,当我尝试进入 sbt 交互模式时,它会显示以下内容并退出。对于其他一切,sbt 都可以正常工作。
[info] Set current project to sbt_test (in build file:/Users/binshi/sbt_test/)
[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
[warn] The `-` command is deprecated in favor of `onFailure` and will be removed in 0.14.0
【问题讨论】:
-
您在命令提示符中输入的具体内容是什么?您只需输入
sbt -
是的,我输入的都是 sbt。然后上面的消息,而不是停止在 > 提示它退出。
-
您能否分享一下您的
build.sbt的内容,尤其是scalacOptions部分? -
这个问题看起来和你的问题有关:Play, re-run with -feature for details
-
我之前在链接中看到了cmets。在创建项目之前,sbt 命令不应该直接从 sbt 包中运行吗?因此它不包含 build.sbt 或 scalacOptions。