我使用 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")
有了这个,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
有趣的是,两条线是分开工作的。
可以同时使用这两个插件吗?