-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mvn build of scala.core fails with error "File name too long" #9
Comments
Platform version info:
|
It seems you os's filesystem does not support longer file names? That's sad. |
I did some more research, the bug is in eCryptfs which I use to encrypt my home directory. Sad, indeed... See https://bugs.launchpad.net/ecryptfs/+bug/344878 Closing this issue... |
It's not so much a bug in ecryptfs as it is a disagreement between ecryptfs and scala. There was a bug in ecryptfs where it did not correctly indicate max file name lengths. As of ubuntu 12.04 and derivatives, that bug is now fixed, but scala ignores that advice and continues to create outrageously long filenames - so now the bug is fully in scala's court. |
The ubuntu maintainers agree with @scotte:
I'm not actually a Scala guy (I just need to compile a Scala project), so I don't know how the tooling space around Scala looks, but it seems odd that this bug is listed on the NetBeans Scala project. Shouldn't the scala compiler configure itself with statfs()? It's important to note that this really is an error on Scalas part, the hard limit for file name length on an unencrypted ext3 is 254 bytes, which is not massively larger than the 112 byte limit of ecryptfs. If Scala wants to compile on linux systems, it will need to take the max file name size into account. |
Well, I got the same problem as very annoying and with no explanation as the file names have no visible illegal characters and are not too long and not copied or deleted and found good stuff at http://pathtoodeep.com/ and also over here. Thanks |
In Scala you can use the option "-Xmax-classfile-name " option to limit the maximum filename length for generated classes. |
…4 w/ encrypted homes detailed in discussion here:dcaoyuan/nbscala#9
The option -Xmax-classfile-name set to 110 safe my Scala builds against filename too long. THANKS !! 👍 😄 |
I fetched the latest revision of the repository and tried to do a mvn clean install. The compilation of scala.core failed with error message "File name too long" without more information (which file?). Adding -verbose to the scala compiler options reveiled that the error occurs in ast.ScalaAstVisitor:
The text was updated successfully, but these errors were encountered: