{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/4882","labels_url":"https://api.github.com/repos/playframework/playframework/issues/4882/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/4882/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/4882/events","html_url":"https://github.com/playframework/playframework/issues/4882","id":96726982,"number":4882,"title":"Nesting 8 defining statements in a template generates a compliation error of \"File name too long\"","user":{"login":"stusmall","id":1697444,"avatar_url":"https://avatars.githubusercontent.com/u/1697444?v=3","gravatar_id":"","url":"https://api.github.com/users/stusmall","html_url":"https://github.com/stusmall","followers_url":"https://api.github.com/users/stusmall/followers","following_url":"https://api.github.com/users/stusmall/following{/other_user}","gists_url":"https://api.github.com/users/stusmall/gists{/gist_id}","starred_url":"https://api.github.com/users/stusmall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stusmall/subscriptions","organizations_url":"https://api.github.com/users/stusmall/orgs","repos_url":"https://api.github.com/users/stusmall/repos","events_url":"https://api.github.com/users/stusmall/events{/privacy}","received_events_url":"https://api.github.com/users/stusmall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/playframework/playframework/labels/needs-verification","name":"needs-verification","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-23T04:42:33Z","updated_at":"2015-07-23T06:58:06Z","closed_at":null,"body":"I ran into a strange compilation error when working on a project.  I made a new project with the smallest example of code that triggers the problem.  The example code can be found at:\r\n\r\nhttps://github.com/stusmall/templatebug\r\n\r\nJust clone the repo and run \"sbt compile\" to see the problem.  Output is as follows:\r\n\r\nstusmall@T520:~/workspace/templatebug$ sbt compile\r\nPicked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar \r\n[info] Loading project definition from /home/stusmall/workspace/templatebug/project\r\n[info] Set current project to templatebug (in build file:/home/stusmall/workspace/templatebug/)\r\n[info] Updating {file:/home/stusmall/workspace/templatebug/}root...\r\n[info] Resolving jline#jline;2.12.1 ...\r\n[info] Done updating.\r\n[info] Compiling 6 Scala sources and 1 Java source to /home/stusmall/workspace/templatebug/target/scala-2.11/classes...\r\n[error] File name too long\r\n[error] one error found\r\n[error] (compile:compileIncremental) Compilation failed\r\n[error] Total time: 13 s, completed Jul 22, 2015 10:41:36 PM\r\nstusmall@T520:~/workspace/templatebug$ \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/123998992","html_url":"https://github.com/playframework/playframework/issues/4882#issuecomment-123998992","issue_url":"https://api.github.com/repos/playframework/playframework/issues/4882","id":123998992,"user":{"login":"stusmall","id":1697444,"avatar_url":"https://avatars.githubusercontent.com/u/1697444?v=3","gravatar_id":"","url":"https://api.github.com/users/stusmall","html_url":"https://github.com/stusmall","followers_url":"https://api.github.com/users/stusmall/followers","following_url":"https://api.github.com/users/stusmall/following{/other_user}","gists_url":"https://api.github.com/users/stusmall/gists{/gist_id}","starred_url":"https://api.github.com/users/stusmall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stusmall/subscriptions","organizations_url":"https://api.github.com/users/stusmall/orgs","repos_url":"https://api.github.com/users/stusmall/repos","events_url":"https://api.github.com/users/stusmall/events{/privacy}","received_events_url":"https://api.github.com/users/stusmall/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T06:58:06Z","updated_at":"2015-07-23T06:58:06Z","body":"I'm using Ubuntu 15.04 and for my java version:\r\n\r\nstusmall@T520:~/workspace/templatebug$ java -version \r\nPicked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar \r\nopenjdk version \"1.8.0_45-internal\"\r\nOpenJDK Runtime Environment (build 1.8.0_45-internal-b14)\r\nOpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)\r\nstusmall@T520:~/workspace/templatebug$ \r\n\r\nAs for jayatanaag:\r\nhttp://stackoverflow.com/questions/26074446/picked-up-java-tool-options-javaagent-usr-share-java-jayatanaag-jar-when-st\r\n\r\nEven when removing jayatanaag I get the same issue:\r\n\r\nstusmall@T520:~/workspace/templatebug$ sbt compile\r\n[info] Loading project definition from /home/stusmall/workspace/templatebug/project\r\n[info] Set current project to templatebug (in build file:/home/stusmall/workspace/templatebug/)\r\n[info] Compiling 6 Scala sources and 1 Java source to /home/stusmall/workspace/templatebug/target/scala-2.11/classes...\r\n[error] File name too long\r\n[error] one error found\r\n[error] (compile:compileIncremental) Compilation failed\r\n[error] Total time: 9 s, completed Jul 23, 2015 12:57:32 AM\r\nstusmall@T520:~/workspace/templatebug$ \r\n\r\n"}}