All Questions
Tagged with read-eval-print-loop sbt
21 questions
1
vote
0
answers
368
views
Setting javaOptions in sbt:console task
How can I set javaOptions in an sbt project so that they'll be properly propagated inside the sbt:console task? I want have the vector incubator module visible inside the sbt console repl.
By adding ...
0
votes
1
answer
114
views
Scala REPL hanging indefinitely when calling map(f).sum on Spark RDD
I find the following simple example hangs indefinitely for me in the Scala REPL (sbt console):
import org.apache.spark.sql._
val spark = SparkSession.builder().master("local[*]").getOrCreate(...
2
votes
0
answers
74
views
Access test resources in REPL
I find myself often using a REPL (sbt console), wishing that I had easy access to test resources. Specifically, this includes fixtures stored in $PROJECT_ROOT/src/test/resources and libraries in $...
3
votes
2
answers
632
views
Using vim in scala sbt console, scala repl ?
Is there way to edit and enter current command on a sbt console(scala repl) using VIM, like we do on bash. As bash gives you the option to able to edit your current command from vim.
5
votes
3
answers
13k
views
How to import package into Scala REPL?
How do I import a package into Scala's REPL?
I am trying to import this package called funsets which has an object named "FunSets".
I tried several variations of import funsets._ and import funsets._;...
0
votes
1
answer
69
views
What is the difference between case object defined in scala repl and sbt console?
When I declare case object in SBT Console, it creates module
scala> case object A
defined module A
And when I define it in Scala REPL, it creates object
scala> case object A
defined object A
...
0
votes
1
answer
62
views
How to use own types instead of scala standard types in sbt?
I have the following for learning.
package learning.laziness
sealed trait Stream[+A] {
def headOption: Option[A] = this match {
case Empty => None
case Cons(h, _) => Some(h())
}
...
1
vote
1
answer
133
views
How can I have some code loaded in sbt console?
I'd like to have some code loaded/interpreted upon running sbt console. The same code would be shared between projects.
Think of it as something which makes sense in an interactive session only (eg. ...
3
votes
1
answer
662
views
Scala REPL import SBT file
I have an SBT file that has the following contents:
name := "Scala Playground"
version := "1.0"
scalaVersion := "2.11.6"
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/...
0
votes
0
answers
65
views
SBT REPL loops really long input strings
I am running sbt 0.13.7 on mintty 1.1.3.
When I put really long string in sbt REPL it just loops the input as follows:
sbt> ...
2
votes
1
answer
266
views
Exit from REPL without killing background process
I'm using sys.process inside REPL as kind of shell. There are many uses for scala in a shell. And I invoke some external programs, of course. But I discovered that I could not leave the REPL with a ...
3
votes
1
answer
303
views
How to get jdb-like features (setting breakpoints or displaying vars) in sbt or REPL for Scala?
Rather than opening up jdb is there a way to get similar functionality within the repl or sbt session?
The features I am seeking:
ability to define breakpoints:
:bp mySource.scala:79 // stop at ...
2
votes
0
answers
54
views
sbt console using ~; trying to see if REPL possible at cmd line; possible to w/o JRebel
Using SBT version 0.13.1 and Scala 2.10.4 on Ubuntu.
Trying to see if I can have a REPL at command line such as the Eclipse or IDEA REPL.
Is a way to run the console (REPL) using ~ such that changes ...
0
votes
0
answers
320
views
SBT - Scala version mismatch
I have the latest Scala IDE 3.0 installed on Eclipse 4.2.2
I installed the latest SBT using brew install sbt
When I run SBT and type the command console this is what I get
> console
[info] ...
2
votes
1
answer
572
views
Scala 2.10 and Continuations (akka-dataflow) in the sbt console
What is the status of the continuations plugin in Scala 2.10; I'm slightly confused. The following setup is in the Akka 2.2-SNAPSHOT documentation:
autoCompilerPlugins := true,
libraryDependencies &...