Filename too long sbt

前端 未结 5 1226
谎友^
谎友^ 2020-12-08 10:11

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         


        
5条回答
  •  执笔经年
    2020-12-08 10:49

    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")
    

提交回复
热议问题