按照安装指南here安装ENSIME for Emacs。我在addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.5")
文件中添加了~/.sbt/0.13/plugins/plugins.sbt
行,并在SBT多项目中启动了SBT。
一开始,我收到以下错误:
/myprojectpath/project/project/build.sbt:3: error: value withNameHashing is not a member of sbt.inc.IncOptions
incOptions := incOptions.value.withNameHashing(true)
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
如果我删除addSbtPlugin
行,则SBT启动正常。