错误:预期eof?!如何在sbt中同时使用idea和eclipse插件?

错误:预期eof?!如何在sbt中同时使用idea和eclipse插件?,sbt,Sbt,我使用sbt0.13 两者都有,建议在~/.sbt/plugins/build.sbt中分别添加一行 因此,我的插件/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
0.13

两者都有,建议在
~/.sbt/plugins/build.sbt
中分别添加一行

因此,我的
插件/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
有趣的是,这两条线是分开工作的

是否可以同时使用这两个插件?

根据需要,在Scala表达式之间放置一个空行

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1")
# blank line here
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.3.0")
请注意,对于sbteclipse
2.3.0
,您需要SBT
0.13.0
,SBT idea当前用于SBT
0.12.x