These are chat archives for sbt/sbt

11th
Apr 2017
eugene yokota
@eed3si9n
Apr 11 02:59
@jastice there's only value for a setting. you could try emulating what you want via scoping
Kenneth Njendu
@knjendu
Apr 11 07:26
His all, I have a question regarding a strange error I'm getting. I'm making my first attempt at a multi-project effort and have configures my configuration (build.sbt, plugins.sbt etc) and code properly. the project directory I then go ahead and run the sbt command and switch to one of the subprojects and excute the 'run' command and get the following
[info] Loading project definition from /mnt/Storage1/Projects/core/project
[info] Set current project to Centuria Core (in build file:/mnt/Storage1/Projects/core/)
[Centuria Core] $ project sentinel
[info] Set current project to sentinel (in build file:/mnt/Storage1/Projects/core/)
[sentinel] $ run
[info] Updating {file:/mnt/Storage1/Projects/core/}core...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Updating {file:/mnt/Storage1/Projects/core/}sentinel...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.

--- (Running the application, auto-reloading is enabled) ---

[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 21 Scala sources and 30 Java sources to /mnt/Storage1/Projects/core/modules/sentinel/target/scala-2.11/classes...
[error] p.c.s.n.PlayRequestHandler - Exception caught in Netty
java.security.PrivilegedActionException: null
    at java.security.AccessController.doPrivileged(Native Method)
    at play.runsupport.Reloader$.play$runsupport$Reloader$$withReloaderContextClassLoader(Reloader.scala:40)
    at play.runsupport.Reloader.reload(Reloader.scala:337)
    at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:123)
    at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:121)
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
    at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at sbt.ConcurrentRestrictions$$anon$4.take(ConcurrentRestrictions.scala:188)
    at sbt.Execute.next$1(Execute.scala:85)
    at sbt.Execute.processAll(Execute.scala:88)
    at sbt.Execute.runKeep(Execute.scala:68)
    at sbt.EvaluateTask$.liftedTree1$1(EvaluateTask.scala:359)
    at sbt.EvaluateTask$.run$1(EvaluateTask.scala:358)
    at sbt.EvaluateTask$.runTask(EvaluateTask.scala:378)
    at sbt.EvaluateTask$$anonfun$apply$1$$anonfun$apply$3.apply(EvaluateTask.scala:279)
Caused by: java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Arrays.java:3664)
    at java.lang.String.<init>(String.java:207)
    at sbinary.JavaUTF$StringFormat$.reads(javaprotocol.scala:147)
    at sbinary.JavaUTF$StringFormat$.reads(javaprotocol.scala:100)
    at sbinary.Operations$.read(operations.scala:9)
    at sbinary.Generic$$anon$3.reads(generic.scala:55)
    at sbinary.Operations$.read(operations.scala:9)
    at sbinary.BasicTypes$$anon$4.reads(standardtypes.scala:28)
    at sbinary.BasicTypes$$anon$4.reads(standardtypes.scala:24)
    at sbinary.Operations$.read(operations.scala:9)
my machine has 16 GB or RAM and I have limited the memeory allocation to SBT as follows
export SBT_OPTS="-Xmx1024M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M  -Duser.timezone=ADT"
I have played around with the Xmx value some to no avail, any input would be helpful. I'm running play 2.5 java
Kenneth Njendu
@knjendu
Apr 11 07:38
also despite having 'fork in run := false' in all the build.sbt files (core and sub projects) when I inspect the value in the console, I get the following
$ sbt fork
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=2G; support was removed in 8.0
[info] Loading project definition from /mnt/Storage1/Projects/core/project
[info] Set current project to Centuria Core (in build file:/mnt/Storage1/Projects/core/)
[info] true
Justin Kaeser
@jastice
Apr 11 08:12
@eed3si9n yeah I was thinking I could task-scope the setting, but that only works for the scopes the task actually works on
Maxim Karpov
@makkarpov
Apr 11 09:41
@eed3si9n Is there a way add project dependency to a derived project? (https://gitter.im/sbt/sbt?at=58ebe4cc8bb56c2d1194e7e1)
Kenneth Njendu
@knjendu
Apr 11 10:48
my machine has 16 GB or RAM and I have limited the memeory allocation to SBT as follows
upping the Xmx to 2048 seems to have solved the problem
Rafal Wachol
@charafau
Apr 11 10:49
only 2gb ?
Kenneth Njendu
@knjendu
Apr 11 10:50
yeah, seems a lot for sbt. what do you have?
Rafal Wachol
@charafau
Apr 11 10:50
I was just thinking about android ;) 6gb gradle process sir
sorry for offtopic
Kenneth Njendu
@knjendu
Apr 11 10:51
ha ha ha :D ran away from gradle a while ago
jotsif
@jotsif
Apr 11 11:18
Hi folks! I am running into out of memory in the "Reapplying settings..." stage, when I have been running the test command a couple of times in the same sbt console. It seems like the Seq of settings it tries to "reapply" is growing after every run. Analysing the heapdump from the crash memory is filled with a lot of Sbt.init$Settings and other Sbt related classes. It is a multi-project SBT config. Anyone else seen this? sbt 0.13.13
Eric K Richardson
@ekrich
Apr 11 14:24
If you get warnings like this Could not find any member to link for "java.io.EOFException" Will this help? https://github.com/sbt/sbt-unidoc
What are people using?
Eric K Richardson
@ekrich
Apr 11 19:35
RE: 0.13.15 - Cool feature creating the project/build.properties :thumbsup:
Dale Wijnand
@dwijnand
Apr 11 20:52
:trumpet: :D
eugene yokota
@eed3si9n
Apr 11 20:55
@makkarpov probably not possible