{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3140","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3140/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3140/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3140/events","html_url":"https://github.com/travis-ci/travis-ci/issues/3140","id":55313723,"number":3140,"title":"Issues with SBT","user":{"login":"joshk","id":8701,"avatar_url":"https://avatars.githubusercontent.com/u/8701?v=3","gravatar_id":"","url":"https://api.github.com/users/joshk","html_url":"https://github.com/joshk","followers_url":"https://api.github.com/users/joshk/followers","following_url":"https://api.github.com/users/joshk/following{/other_user}","gists_url":"https://api.github.com/users/joshk/gists{/gist_id}","starred_url":"https://api.github.com/users/joshk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshk/subscriptions","organizations_url":"https://api.github.com/users/joshk/orgs","repos_url":"https://api.github.com/users/joshk/repos","events_url":"https://api.github.com/users/joshk/events{/privacy}","received_events_url":"https://api.github.com/users/joshk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/scala","name":"scala","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-23T18:15:10Z","updated_at":"2015-01-24T13:00:10Z","closed_at":null,"body":"Received this support email from a customer:\r\n\r\n```\r\nHi, I've been using Travis CI with a Scala + Play Framework project. I've had strange issues with using SBT. When using SBT as described on your page on build Scala projects, I got unusual failures that contained no error messages. I eventually gave up on that because without an error message, there wasn't much to go on. The output in that case was:\r\n$ jdk_switcher use default\r\nSwitching to Oracle JDK7 (java-7-oracle), JAVA_HOME will be set to /usr/lib/jvm/java-7-oracle\r\n$ export JVM_OPTS=@/etc/sbt/jvmopts\r\n$ export SBT_OPTS=@/etc/sbt/sbtopts\r\n$ java -version\r\njava version \"1.7.0_72\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_72-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)\r\n$ javac -version\r\njavac 1.7.0_72\r\n\r\nUsing Scala 2.11.5\r\n$ sbt test\r\nDetected sbt version 0.13.5\r\n:\r\n/sbt-launch.jar\r\n/sbt-launch.jar\r\n/sbt-launch.jar\r\n\r\nThe command \"sbt test\" exited with 1.\r\n\r\nAs we can see, the only output there seems to be is a colon. I don't really know why.\r\n\r\nI later tried to use the activator script that one would use to create (and often run) Play Framework programs. It's really just a wrapper to SBT. It initially failed:\r\n$ jdk_switcher use default\r\nSwitching to Oracle JDK7 (java-7-oracle), JAVA_HOME will be set to /usr/lib/jvm/java-7-oracle\r\n$ export JVM_OPTS=@/etc/sbt/jvmopts\r\n$ export SBT_OPTS=@/etc/sbt/sbtopts\r\n$ java -version\r\njava version \"1.7.0_72\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_72-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)\r\n$ javac -version\r\njavac 1.7.0_72\r\n\r\nUsing Scala 2.11.5\r\n$ ./activator test\r\nError: Could not find or load main class @.etc.sbt.sbtopts\r\n\r\nThe command \"./activator test\" exited with 1.\r\n\r\nThis is because SBT_OPTS is set to `@/etc/sbt/sbtopts`. I don't understand this setting, considering that the SBT documentation uses that env var to store simply JVM options. And indeed, the solution to my problem was to override SBT_OPTS to the value in the link (SBT_OPTS=\"-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M\").\r\n\r\nI'm not completely sure if this means something wrong on your end, but it seems like a very questionable value for SBT_OPTS. I'm also curious as to why the first attempt (using SBT directly) failed, particularly since Activator isn't doing anything special and SBT should be able to everything I need here. If SBT_OPTS is indeed what it's supposed to be, perhaps this workaround should be documented, as it seems to be necessary to run a Play Framework application (and this is a barebones Play Framework application -- we just got started).\r\n\r\nCheers,\r\nMike\r\n```\r\n\r\n@gildegoma your thoughts and ideas on this?"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/71315580","html_url":"https://github.com/travis-ci/travis-ci/issues/3140#issuecomment-71315580","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/3140","id":71315580,"user":{"login":"gildegoma","id":434654,"avatar_url":"https://avatars.githubusercontent.com/u/434654?v=3","gravatar_id":"","url":"https://api.github.com/users/gildegoma","html_url":"https://github.com/gildegoma","followers_url":"https://api.github.com/users/gildegoma/followers","following_url":"https://api.github.com/users/gildegoma/following{/other_user}","gists_url":"https://api.github.com/users/gildegoma/gists{/gist_id}","starred_url":"https://api.github.com/users/gildegoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gildegoma/subscriptions","organizations_url":"https://api.github.com/users/gildegoma/orgs","repos_url":"https://api.github.com/users/gildegoma/repos","events_url":"https://api.github.com/users/gildegoma/events{/privacy}","received_events_url":"https://api.github.com/users/gildegoma/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T13:00:10Z","updated_at":"2015-01-24T13:00:10Z","body":"@MikeHoffert I found the cause of Problem 1: `sbt-extras` script does not support Windows end-of-line format! \r\n\r\nSee https://github.com/MikeHoffert/TestPlayFrameworkSBT/pull/2"}}