10

When I run ensimeConfig, it creates directories such as

src/main/java
src/main/scala-2.11

which I don't need, since I have my sources always inside

src/main/scala

How can I avoid such behaviour?

NOTE: This is the version I'm using: addSbtPlugin("org.ensime" % "sbt-ensime" % "1.12.4")

Richard Gomes
  • 5,675
  • 2
  • 44
  • 50

1 Answers1

14

I found the solution. Create ~/.sbt/0.13/global.sbt like this:

import org.ensime.EnsimeKeys._

ensimeIgnoreMissingDirectories := true
ashawley
  • 4,195
  • 1
  • 27
  • 40
Richard Gomes
  • 5,675
  • 2
  • 44
  • 50
  • 3
    it informs you about this as it creates the directories – fommil May 01 '17 at 14:30
  • @fommil: yes. it does. I need glasses. :-) – Richard Gomes Nov 15 '17 at 02:53
  • 1
    For anyone it may interest, see my script which automagically installs Scala, SBT and ENSIME into your environment: https://github.com/frgomes/debian-scripts/blob/master/install-scala.sh – Richard Gomes Dec 07 '17 at 23:42
  • cool, thanks, but your `install_scala` is redundant (sbt does this already, with ensime making it all available) and you could benefit from adding a jenv installation too. – fommil Dec 12 '17 at 10:43
  • @fommil: I do not use jenv. I use virtualenv, which attends all my needs pretty well. Another project of mine http://github.com/frgomes/debian-bin automagically sets the virtual environment for me. Maybe in future I merge the two projects into one, since in fact, they work in tandem. – Richard Gomes Dec 30 '17 at 14:12