scalasbtensime

sbt-ensime not playing nice with SBT name hashing


Following the installation guide here to install ENSIME for Emacs. I added the addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.5") line in my ~/.sbt/0.13/plugins/plugins.sbt file and started SBT in a SBT multi-project.

On start I get the following error:

/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?

If I remove the addSbtPlugin line then SBT starts up fine.


Solution

  • Look from #1592 that this is a known issue and the workaround is to blow away your ~/.ivy2.