scala-2.11 Questions

3

Solved

I have the following code: object Macros { import scala.language.experimental.macros import scala.reflect.macros.blackbox def hello(): Unit = macro hello_impl def hello_impl(c: blackbox.Con...
Ravi asked 13/1, 2015 at 10:16

6

Solved

In the last version of scala (2.10.3) REPL, I can type exit to quit from REPL. However, in Scala 2.11.0 this doesn't work. $ scala Welcome to Scala version 2.11.0 (Java HotSpot(TM) 64-Bit Server ...
Parapodium asked 22/4, 2014 at 23:42

3

Solved

And what can be done about it? I have run some tests and it seems that Scala Hashmap is much slower than a Java HashMap. Please prove me wrong! For me the whole point of Hashmap is to get quick a...
Catsup asked 26/2, 2015 at 14:27

2

Solved

I'm trying to run a jenkins job, that fails due to: java.lang.RuntimeException: Missing scala-library.jar When running this line: /usr/lib/jvm/java-1.8.0/bin/java -Xmx4250M -Dsbt.log.noformat=true...
Centralization asked 13/5, 2018 at 7:37

1

I’m making a call to an API, but most of the time I keep getting an error: “Dropping Close since the SSL connection is already closing” and “Premature connection close (the server doesn't appear to...
Prohibit asked 1/4, 2015 at 17:39

2

Solved

When I switch to Scala 2.11.8 SDK in IntelliJ, I get the following error during compile. Compiles fine when I use 2.10.6 SDK in IntelliJ with the same code. Any ideas on how to fix this? Error:s...
Insolence asked 8/9, 2016 at 4:55

3

Solved

At compile time, how to retrieve the name of the current source file (where the code is written) in scala 2.11?
Exuviate asked 18/5, 2015 at 15:10

5

Solved

I'm trying to compile my project to Scala 2.10 and 2.11 so that I can release versions for both scala versions, but every time I try to do it it fails with the following message: #( 04/26/14@ 7:40...
Rockfish asked 26/4, 2014 at 22:47

1

Solved

I have the following code that works in Scala 2.10 to compile external classes at runtime in Scala /** * Compile scala files and keep them loaded in memory * @param classDir Directory storing th...
Militarize asked 25/8, 2016 at 5:16

2

Solved

I have class GroupTable that makes schema of table. As I saw, in other projects there are at conf/evolution/default folder file 1.sql, that is automatically generated from code (as I assume). B...
Plaintiff asked 3/2, 2016 at 20:4

2

I'm new to Scala (using 2.10) and Slick (using 2.0-M2). I see that one of the ways to get around the 22 column limit for tables in Slick is to use nested tuples. I can't figure out how to do that, ...
Polyurethane asked 28/10, 2013 at 13:52

3

Solved

Our application is built on Play 2.4 with Scala 2.11 and Akka. Database used is MySQL. Cache is used heavily in our application.We use Play's default EhCache for caching. Our sample code snippet ...
Tishtisha asked 25/6, 2015 at 5:25

1

Solved

I have a trait, Action, that many different classes, ${whatever}Action, extend. I'd like to make the class that is in charge of instantiating these Action objects dynamic in the sense that it will ...
Estradiol asked 3/9, 2015 at 19:55

2

Solved

I would like to pattern match a function, the problem is type erasure. Notice how in the snippet below, despite the warning issued a match occurs and a "wrong" one at that. scala> def f1 = ()=&...
Autocade asked 27/8, 2015 at 10:19

1

Solved

From the source code scala/Equals.scala (here): package scala trait Equals extends scala.Any { def canEqual(that: scala.Any): scala.Boolean def equals(that: scala.Any): scala.Boolean } In the ...
Corso asked 19/8, 2015 at 10:55

4

Solved

I'm using Scala 2.11.1 and sbt 0.13.5. I have an sbt plugin that contains a helper function to create input tasks as follows (the implementation is stripped away as it's irrelevant to the problem)...
Samarasamarang asked 8/6, 2014 at 4:37

1

Solved

I (inadvertently) came across a bit of pattern matching syntax I did not expect to compile and now cannot figure out. It appears related to unapplySeq. Note the case x List(_,_) part in this simp...
Sheetfed asked 22/6, 2015 at 15:54

1

Solved

I failed to find a good documentation about the use and purpose of crosspaths. Can someone point me to the documentation or answer these specific questions. My Scala version is 2.11.6, but when c...
Cinema asked 28/3, 2015 at 5:36

3

Solved

Suppose I have the code: class A(implicit s:String = "foo"){println(s)} object X { implicit val s1 = "hello" } object Y { import X._ // do something with X implicit val s2 = "hi" val a = ne...
Guffaw asked 28/2, 2015 at 9:18

1

I am working on the akka-http(akka-http-experimental_2.11 - 0.4) for an experimental project. and I have not worked on Spray before. I would like to stream an mp4 video(size can vary) to browser. ...
Desmond asked 21/8, 2014 at 12:15

1

Solved

val nodes = Array.fill[mutable.Buffer[Int]](numNodes){new ArrayBuffer[Int]() with mutable.SynchronizedBuffer[Int]} def addMutualEdge(i: Int)(j: Int) {nodes(i) += j; nodes(j) += i} When I compile...
Fireboard asked 24/1, 2015 at 18:27

1

Solved

I want to use the sbt-proguard plugin in my project, but I need to set it up in a Build.scala file. I read the documentation but there is just an example for the build.sbt file, which won't work i...
Vulvitis asked 19/1, 2015 at 16:58

1

Solved

I am trying to understand what seems like strange behavior when dealing with nulls and type annotations inside a for-comprehension. As an example: def f(): String = null for { a <- Option("h...
Dobbins asked 5/1, 2015 at 23:1

1

I have a comment that contains an example Java servlet configuration. It looks like: /** Blah blah blah... * * {{{ * <servlet-mapping> * <servlet-name>MyAppServlet</servlet-nam...
Forge asked 30/5, 2014 at 17:7

2

Solved

I'm using WartRemover tool to avoid possible errors in my Scala 2.11 code. Specifically, I want to know how to fix the "Product Type Inferred" error. Looking at the repo documentation, I can onl...
New asked 17/12, 2014 at 15:43

© 2022 - 2024 — McMap. All rights reserved.