{"id":67,"date":"2011-11-17T12:17:45","date_gmt":"2011-11-17T20:17:45","guid":{"rendered":"http:\/\/www.lorrin.org\/blog\/?p=67"},"modified":"2012-03-16T23:28:02","modified_gmt":"2012-03-17T06:28:02","slug":"error-file-name-too-long-during-scala-compile","status":"publish","type":"post","link":"https:\/\/www.lorrin.org\/blog\/2011\/11\/17\/error-file-name-too-long-during-scala-compile\/","title":{"rendered":"error: File name too long during Scala compile"},"content":{"rendered":"<p><code>[ERROR] error: File name too long<\/code><\/p>\n<p>A common way to install Ubuntu is with an underlying ext4 file system and eCryptfs encrypted home directories. ext4, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Comparison_of_file_systems\" title=\"comparison of file systems\">like many other file systems<\/a>, has a maximum filename limit of 255 bytes. eCryptfs <a href=\"https:\/\/bugs.launchpad.net\/ecryptfs\/+bug\/344878\">creates filenames much longer than the original<\/a>. Compiled Scala classes tend to have long file names since anonymous classes end up in their own files. Therefore, when compiling Scala projects within eCryptfs on ext4, it is <a href=\"https:\/\/github.com\/dcaoyuan\/nbscala\/issues\/9\">easy to get file name too long<\/a> errors. \ud83d\ude41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ERROR] error: File name too long A common way to install Ubuntu is with an underlying ext4 file system and eCryptfs encrypted home directories. ext4, like many other file systems, has a maximum filename limit of 255 bytes. eCryptfs creates filenames much longer than the original. Compiled Scala classes tend to have long file names <a href='https:\/\/www.lorrin.org\/blog\/2011\/11\/17\/error-file-name-too-long-during-scala-compile\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48],"tags":[23,22,18,21],"_links":{"self":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":4,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":156,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/67\/revisions\/156"}],"wp:attachment":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}