groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán Freyr Stefánsson (JIRA) <>
Subject [jira] [Commented] (GROOVY-7166) Can't build Groovy project due to too long file name
Date Thu, 18 Aug 2016 17:32:21 GMT


Stefán Freyr Stefánsson commented on GROOVY-7166:

There is quite some time since this was reported but in case anyone stumbles in here (as I
did) I'd like to add that this may have been due to ecryptfs. Groovyc seems to be generating
filenames that are too long for the 143 character max limitation of that.

For more info see:

I had this problem when trying to compile the IntelliJ IDEA community project. When I moved
the directory out of my (encrypted) home directory, I was able to compile it.

The problem here seems to be that groovyc is not querying the filesystem for the max filename
lenght. As mentioned in the above ecryptfs bug report, groovyc should be using the statfs()
syscall to query for the max filename length which will be correctly reported as 143 by ecryptfs
filesystems and should take actions accordingly if generated files exceed that limit.

> Can't build Groovy project due to too long file name
> ----------------------------------------------------
>                 Key: GROOVY-7166
>                 URL:
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.3.7
>            Reporter: Marcin Grzejszczak
>            Priority: Minor
> When I clone groovy-core and execute 
> {noformat}
> ./gradlew clean test
> {noformat}
> I get:
> {noformat}
> :compileTestGroovy
> warning: [options] bootstrap class path not set in conjunction with -source 1.6
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 warning
> startup failed:
> /home/marcin/repo/groovy-fork/target/test-classes/org/codehaus/groovy/ast/builder/AstBuilderFromSpecificationTest$_testSwitchAndCaseAndBreakStatements_closure31_closure120_closure124_closure128_closure129_closure130_closure131.class
(File name too long)
> /home/marcin/repo/groovy-fork/target/test-classes/org/codehaus/groovy/ast/builder/AstBuilderFromSpecificationTest$_testForStatementAndClosureListExpression_closure36_closure154_closure156_closure160_closure161_closure162.class
(File name too long)
> {noformat}
> Executed with JDK7 and JDK8. On Linux Mint.
> _uname -a_ execution result:
> {noformat}                                                                          
> Linux someName 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64
x86_64 GNU/Linux
> {noformat}
> A workaround is to move the repository to another folder to shorten the path.

This message was sent by Atlassian JIRA

View raw message