-
George Pligor
android scala ubuntu intellij-idea sbt
I am trying to get a hello world android app work with scala and intellij Whoever tried the same feat must be familiar with the following steps. The problem happens at the end when I am using the sbtPlease note the versions for each tool I use. For starters I am using the java version 1.7.0_07-Download and setup the android sdk. I have downloaded all versions from 1.5 (API 3) to 4.1 (API 16). I will not go into further details on this. There are many tutorials already.We are going to need the an
-
sphinx13
scala sbt
My setup:Ubuntu 12.04Java 1.6.0_45Eclipse 3.7.2Scala IDE 2.0.0.v-2_08-201112200107-82421c5Situation: I tried to run the source code of Kafka, which is wrote in Scala, and with java files. after the import(there seems no error), the problem view shows like this: Error Description: The SBT builder crashed while compiling your project. This is a bug in the Scala compiler or SBT. Check the Erorr Log for details. The error message is: null Stack trace:!ENTRY org.scala-ide.sdt.core 4 4 2013-06-18 10
-
dave
scala sbt
I have this code:var nodeMap:Map[Int, List[Node]] = Map[Int, List[Node]]()nodeMap = Map[Int, List[Node]]() ++ nodes.par.groupBy( x => x.getClosest(centers))x.getClosest returns an Int. When I go to compile this, the compiler crashes saying it’s out of memory. However, when I do this:var nodeMap:Map[Int, List[Node]] = Map[Int, List[Node]]()nodeMap = nodes.groupBy( x => x.getClosest(centers))It works fine. Why?
-
Jeremy
scala executable-jar sbt proguard
I’ve written a simple Scala application that I’d like to distribute in the form of a standalone, executable jar to servers without the Scala runtime. Everything works fine when invoked through SBT run, but not java -jar.When I run the jar through java, I get the following unhandled exception:Exception in thread “main” java.lang.AbstractMethodError: java.util.logging.Handler.publish(Ljava/util/logging/LogRecord;)Vat java.util.logging.Logger.log(Logger.java:458)at net.lag.logging.Logger.log(Logge
-
mikolaj
scala playframework sbt playframework-2.1
My Play 2.1.1 project uses SBT 0.12.3, and when compiling it on my dev machine, everything’s fine, I get no errors, and the app runs without any issues. When I try to compile it on an EC2 instance used for testing, I get the superlong error message below. The only possibly relevant difference between the two environments is that I have java 6 (1.6.0_45) on my dev machine, and java 7 (1.7.0_19) on EC2, but I can’t currently change neither. Have you ever seen something like this? What can this be
-
Bob
scala sbt akka spray
I am getting a strange error with sbt run for a Spray example app I wrote, it compiles fine, and I only get the error on my personal computer because it works fine on another computer. Here’s what I think is the relevant source, it’s the template code from Spray sample code but I don’t think it’s the cause.package spray.examplesimport akka.actor.{ActorSystem, Props} import akka.io.IO import spray.can.Httpobject Boot extends App {implicit val system = ActorSystem()// the handler actor replies to
-
Fabian
android google-maps scala sbt
I try to make an Android App with Scala, SBT and Google Maps.plugins.scala:import sbt._class Plugins(info: ProjectInfo) extends PluginDefinition(info) {val android = “org.scala-tools.sbt” % “sbt-android-plugin” % “0.5.1” }project.scala:import sbt._trait Defaults {def androidPlatformName = “android-9” } class Parent(info: ProjectInfo) extends ParentProject(info) {override def shouldCheckOutputDirectories = falseoverride def updateAction = task { None }lazy val main = project(“.”, “AndMap”, new M
-
emchristiansen
scala sbt shapeless scala-pickling
I’m using the macro-heavy scala-pickling along with shapeless, and I keep crashing the Scala 2.10.3 compiler with an apparent out of memory error. The tail of the error message looks like this:[error] <tpt> // tree.tpe=tasks.anonfun$218 [error] Block( // tree.tpe=Unit [error] Apply( // def <init>(): scala.runtime.AbstractFunction1 in class AbstractFunction1, tree.tpe=scala.runtime.AbstractFunction1 [error] SimpleMiddlebury$$anonfun$218.super.”<init>” // de
-
omnilinguist
scala sbt testng
We’re trying to upgrade https://github.com/linkedin/play-testng-plugin to scala 2.10 / sbt 0.13, also using the new version (3.0.0 vs 2.0.3) of https://bitbucket.org/jmhofer/sbt-testng-interface/wiki/HomeHowever, I am getting a strange error on sbt compile which we have not been able to figure out but seems to be caused by the following code snipper: class WrappedTestNGRunner(testClassLoader: ClassLoader, loggers: Array[Logger], state: TestRunState) extends TestNGRunner(testClassLoader: ClassLoa
-
anelson
playframework sbt
I am trying to create a Scala application consisting of a library project (let’s call this common), a Thrift server project (let’s call this server) and a Play web application project (hereinafter known as web). All three are written in Scala and built with sbt.My project structure looks like this:myproject/ -common/… -server/… -web/-app/-conf/… -project/-Build.scala-build.properties -build.sbtMy build.sbt file (simplified a bit) looks like this:import play.Project._name := “myproject”ver
-
mconner
dependencies task sbt
I am trying to define a dependency between a custom task and an existing task (in this case compile in Compile), following: Task Dependencies in sbt documentation. However, closest I could get is this:object ApplicationBuild extends Build {val hello = TaskKey[Unit](“hello”, “Prints ‘Hello World'”)val helloTaskA = hello := {println(“Hello World”) }val helloTaskB = hello <<= hello.dependsOn(compile in Compile)val main = play.Project(appName, appVersion, appDependencies).settings(helloTaskA,
-
Paul J
scala lift sbt
I’m trying to start the lift_basic project from the latest version of lift (2.4-M1).I’m following the docs – untarred the tarball, then changed into scala_29/lift_basic and ran ./sbt update but it fails with:Getting Scala 2.7.7 … :: retrieving :: org.scala-tools.sbt#boot-scala confs: [default] 2 artifacts copied, 0 already retrieved (9911kB/112ms) Getting org.scala-tools.sbt sbt_2.7.7 0.7.5 … :: retrieving :: org.scala-tools.sbt#boot-app confs: [default] 16 artifacts copied, 0 already retrie
-
allentiak
scala sbt
This code compiles only with SBT 0.7.x series (in this case, 0.7.7), but no with SBT 0.11.x series (en this case, 0.11.3). In both cases, using the same Scala 2.9.x series (2.9.1)It seems that SBT 0.11.3 cannot infer the parameters’ types. Nor can Eclipse. My guess is that there is a problem in the coding. Or is it an SBT regression?(At the moment, I am using Eclipse 4.2 with the “unstable” version of the Scala plugin. However, I get the same error with Eclipse 3.7 and the “stable” version of th
-
amertum
sbt aspectj spring-aop playframework-2.1
I have added to plugins.sbt this declarationaddSbtPlugin(“com.typesafe.sbt” % “sbt-aspectj” % “0.9.0”)Now I would like to configure this plugin to compile my java controller classes using aspect library org.springframework:spring-aspects:3.1.4 as with aspectj-maven-pluginI have set this configuration :import sbt._ import Keys._ import play.Project._ import com.typesafe.sbt.SbtAspectj._ import com.typesafe.sbt.SbtAspectj.AspectjKeys._object ApplicationBuild extends Build {val appDependencies = Se
-
Bill C
scala sbt
I’m having trouble getting my new SBT task ‘install’ to depend on the OneJar task. Here’s my Build.scala file:import sbt._ import Keys._ import com.github.retronym.SbtOneJar._object BuildBroBuild extends Build {val install = TaskKey[Unit](“install”, “Installs the JAR and a launcher script into your homedir”)private def installTask = task {println(“Hello world!”)}override lazy val settings = super.settings ++Seq(install <<= (oneJar in Global)(installTask dependsOn(_)))lazy val root = Projec
-
akauppi
scala javafx-2 sbt
What I’d like to do is define javaHome in the beginning, either from an environment variable or from a fixed string as a default. Then, later, I would use that string.This is what I’ve tried:javaHome := Some(file(“/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home”))and laterunmanagedJars in Compile <+= (javaHome) { fn => Attributed.blank( fn + “/jre/lib/jfxrt.jar”) }I have tried to read the [reference][1] but it’s really more complex than Scala itself. Please help.I can bypas
-
om-nom-nom
scala pattern-matching sbt
Sorry for a long message – a hope, you’ll read it. I started to do my course work on Scala. It is FTP server. It is using patter-matching for command recognizing. I write my code in Eclipse. I think, SBT have a bug, but I don’t know where to say about it.Description: Long compile time. After compilation there is no any error in IDE. But there is next line in “Problems” panel:The SBT builder crashed while compiling your project. This is a bug inthe Scala compiler or SBT. Check the Erorr Log for d
-
rancidfishbreath
maven jenkins sbt
I have two projects A and B, such that B depends on A. I build project A through the sbt plugin during a jenkins build. The sbt command I use is simply sbt publish. The publishTo key is set as such:publishTo := Some(Resolver.file(“file”, new File(“repository”)))At the end of the build I have what seems to be a good Ivy/Maven repository (depending on whether I set publishMavenStyle := true).In project B I add the appropriate resolver and library dependecy:resolvers += “Jenkins” at”http://jenkins-
-
flav
playframework sbt alfresco playframework-2.1
I am pretty new to Play framework and have an application from which I need to access Alfresco. This is my Build.scala file object ApplicationBuild extends Build {val appName = “Librarian”val appVersion = “1.0-SNAPSHOT”val appDependencies = Seq(// Add your project dependencies here,javaCore,javaJdbc,javaEbean,”org.alfresco” % “alfresco-web-service-client” % “4.2.c”)val main = play.Project(appName, appVersion, appDependencies).settings(// Add your own project settings here lessE
-
thequark
scala build-process sbt
I am using SBT (0.7.4) with Scala(2.7.7) to build my Scala project and sometimes I get following error when building the project.So far the only remedy seems to retry it or do a clean on the SBT shell which adds delay in build process. No definite pattern of occurrence of the error has emerged but it happens quite a lot when I am using triggered execution of test cases: ~testPlease note the code base has no error. If I do a clean and build again without any source code change build gives no erro
-
loki
heap sbt outofmemoryerror
I am using SBT 0.12.3 to test some code and often I get this error message while testing interactively with the ~test command.8. Waiting for source changes… (press enter to interrupt) [info] Compiling 1 Scala source to C:\Users\t\scala-projects\scala test\target\s cala-2.10\classes… sbt appears to be exiting abnormally.The log file for this session is at C:\Users\t\AppData\Local\Temp\sbt566325905 3150896045.log java.lang.OutOfMemoryError: PermGen spaceat java.util.concurrent.FutureTask$Sync.
-
denys
java scala playframework sbt bson
I’m trying to use “org.apache.mahout” % “mahout-integration” % “0.7” as a dependency inside my play2 based web application.[warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.mongodb#bson;2.5: java.text.ParseException: inconsistent module descriptor file found in ‘http://repo1.maven.org/maven2/org/mongodb/bson/2.5/bson-2.5.pom’: bad organisation: expected=’org.mongodb’
-
ricardogobbo
java scala intellij-idea sbt vaadin
My widgetset compilation with vaadin-sbt-plugin (https://github.com/Gekkio/sbt-vaadin-plugin) is generating the follow exception:> vaadin-compile [info] [info] == copy-resources == [info] == copy-resources == [info] [info] == vaadin-compile == [error] Nov 29, 2011 10:09:35 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets [error] Informaþ§es: Widgetsets found from classpath: [error] com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:E:/Projetos/smart
-
bwroga
java sbt jogl onejar
I have created an OpenGL project with Scala and JOGL and am trying to package it into a .jar file using sbt and the one-jar plugin.The .jar is created without any errors, but when I try to run the .jar, I get an error stating that a JOGL .jar within the main .jar cannot be found. I ran jar tf to look at the contents of the main jar, and I see the “missing” jar inside.The “missing” jar is gluegen-rt-natives-windows-amd64.jarThis is the error I get:Catched FileNotFoundException: \target\scala-2.9.
-
retronym
scala jdbc junit sbt
I have an JUnit 4 integration test which checks if the user running the test has access to a QA database, and this test runs fine via the JUnit plugin and the first time I invoke the tests through SBT, but all subsequent invocations through SBT fail with the stack trace below. This means I have to disable the test in order to continuously test.[error] Caused by: java.sql.SQLException: No suitable driver found for jdbc:sybase:Tds: … [error] at java.sql.DriverManager.getConnection(Unknown S
-
JasonG
scala playframework playframework-2.0 sbt
https://github.com/jasongoodwin/play21-multimodule-demo has the code. I’ve recreated this problem on 3 different projects. I don’t know what’s up. once you put the aggregate and dependsOn in the build.scala file the project throws an error when trying to start play.[info] Loading global plugins from /Users/jgoodwin/.sbt/plugins [info]Loading project definition from/Users/jgoodwin/Development/src/ninjakeyboard/test/tmp/play21-multimodule-demo/project[error] java.lang.ExceptionInInitializerError [