Dependencies with ensime using sbt type

got the following in my build.sbt file:

name := "Ledger Accounting"

libraryDependencies += "junit" % "junit" % "4.8" % "test"

libraryDependencies += "org.scalatest" % "scalatest" % "1.3" % "test"

This is in my .ensime, in the same directory:

:use-sbt t
:project-package "uk.co.mydomain.ledger"

With sbt, I can compile the above and test the class that imports the scalatest classes, but nothing is visible in the library entries in emacs ensime.

Any ideas on how to get ensime to pick up my build.sbt and add scalatest to my classpath? Ideally, that does not require me to manage two lists of identical dependencies!

+5
source share
1 answer

It worked. See comments on issue 157 in the Github project. Two relevant quotes:

, , , sbt - expectj, sbt. 0,7 0,9 - 0,10 - ( 0,7) . - aemoncannon ( sbt-revamp)

3 , - , - - , : https://github.com/fhars/sbt-ensime-plugin- fhars

fhars .ensime. SBT classpath; SBT.

+1

All Articles