I am getting an error saying I have a file that is too long in sbt.
[info] Compiling 29 Scala sources to /home/chris/dev/suredbits-core/target/scala-2.11
If your /home
is an encrypted file system (e.g. LUKS), you might run into this issue.
Setting max-classfile-name
to 254 is the default (or it might be 255) - so you're not reducing it much. You should probably be considering something closer to a max length of 70 - 100. You can set it for all your projects by creating ~/.sbt/0.13/local.sbt
with the scalac override:
scalacOptions ++= Seq("-Xmax-classfile-name","78")