我用sbt 0.13.
无论https://github.com/typesafehub/sbteclipse和https://github.com/typesafehub/sbt-idea建议添加一行每个来~/.sbt/plugins/build.sbt.
因此我plugins/build.sbt看起来像:
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.3.0")
Run Code Online (Sandbox Code Playgroud)
有了这个,sbt继续失败并出现错误:
.sbt/0.13/plugins/build.sbt:2: error: eof expected but ';' found.
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.3.0")
^
[error] Error parsing expression. Ensure that settings are separated by blank lines.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? zsh: exit 130 sbt
Run Code Online (Sandbox Code Playgroud)
有趣的是,两条线都单独工作.
是否可以使用这两个插件?
Sch*_*rdt 24
根据如何build.sbt定义设置,您需要在Scala表达式之间放置一个空行.
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1")
# blank line here
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.3.0")
Run Code Online (Sandbox Code Playgroud)
请注意,0.13.0sbteclipse 需要SBT 2.3.0,sbt-idea目前用于SBT 0.12.x.
| 归档时间: |
|
| 查看次数: |
5543 次 |
| 最近记录: |