Scala is a general purpose programming language principally targeting the Java Virtual Machine. Designed to express common programming patterns in a concise, elegant, and type-safe way, it fuses both imperative and functional programming styles. Questions about programming and software development using Scala are off topic and should be asked on stackoverflow.com.
Questions tagged [scala]
20 questions
39
votes
1 answer
remove package installed by brew
Package name : sbt
Path : /usr/local/cellar/sbt
what I have try :
sudo rmdir sbt -i on my terminal but get
"rmdir: sbt: Directory not empty"
william
- 393
21
votes
1 answer
Why does the ">" command in a Windows console not redirect all messages to a file?
I am trying to build a Scala project with sbt, so I run a command:
sbt clean test > log.log
Which means that any messages that the sbt tool writes to the Windows console should be written to the "log.log" file. But sometimes I get stacktrace…
Cherry
- 980
13
votes
3 answers
A rapid way to type funny characters from Scalaz?
Is there any easy and fast way to type the funny characters (like ⊛, ≟, ∘, ∨ etc) from Scalaz? (I am using Ubuntu 9.04)
Green Hyena
3
votes
0 answers
Idea IntelliJ : Compile & Run Scala REPL in remote machine
I am developing a Scala application on my remote machine ( It doesnot support GUI ) I need to use IntelliJ IDEA to write my code . Can you suggest me the best way to write my code in local machine ( windows ) and execute the application in remote…
Ronak Agrawal
- 131
3
votes
1 answer
How to add CLASSPATH parameters permanently when using sudo?
On Ubuntu 12.04.2 LTS 64bits, when using sudo or sudo -i or sudo su or even su in a session, in order to use both Java AND Scala I need to enter the following commands:
sudo -i
CLASSPATH=$CLASSPATH:/usr/share/java/scala-library.jar
export…
Fnux
- 145
3
votes
1 answer
Scala compiler _incredibly_ slow on Mac OS X 10.6
I recently tried to install scala and the Scala IDE plugin for Eclipse. Everything's working fine, except for that it takes over 5 seconds to compile a simple hello world program. At first I thought this problem was Eclipse-related, but I tried it…
fresskoma
- 824
1
vote
0 answers
Spark standalone running job error
Have been stuck on this error for a few days, desperately need help.
So with standalone deploying mode, I am trying to run sample jobs, yet no matter how simple the job is (even starting spark-shell with counting an array of numbers) the following…
bcxuezhe39
- 11
1
vote
1 answer
IntelliJ Idea debugging expression evaluation
I'm using IntelliJ idea Community edition (with Scala) and I'm trying to evaluate an expression. I hit Alt-F8 to open it in debug mode and then switch to 'Code Fragment Mode'. However, I'm allowed to only evaluate variables that already exist in…
0fnt
- 2,001
1
vote
1 answer
Scala REPL Crash
I've tried Scala on two computers. It works fine on a Windows Professional 64-Bit OS, but the REPL and scalac crash nastily on Windows Professional 32-Bit when running directly from the command line.
I've tried both the 2.9 and 2.10 releases, and…
KChaloux
- 157
1
vote
0 answers
SSH connection dropping immediately after authentication in Ammonite sshd
I realize this question (or similar ones) have been asked elsewhere, but the solutions haven't worked for me. I'm trying to use ammonite in a scala/java project locally and start the SSH server with
import ammonite.sshd._
import…
Jacob Bennett
- 11
- 3
1
vote
1 answer
Why am I getting this error when running Spark Submit, “Failed to find data source: avro?”
When I run Spark Submit I have the following error:
Exception in thread "main" org.apache.spark.sql.AnalysisException:
Failed to find data source: avro. Avro is built-in but external data
source module since Spark 2.4. Please deploy the application…
Looper
- 11
1
vote
0 answers
IIssue while loading plugin sbt-assembly in SBT Version 1.2.8
I'm having trouble to install assembly plugin in my sbt 1.2.8 tool. I have added below configuration in my sbt setting file.
site.sbt:
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.3")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" %…
Gaurav Jain
- 19
0
votes
0 answers
error running scala installer on windows
I am trying to use the scala 2.11.2 msi installer (downloaded from the scala site) on windows 7 professional (64 bit). However, I get the following error when launching the installer:
This installation package could not be opened. Contact the…
ali haider
- 179
0
votes
2 answers
Log total time a linux command (compiler) runs during a day
I'm interested in how long my machine spends compiling scala in an average workday. Is there some way to log the total runtime of the scalac command every time it is run, even if it is run by some other tool such as sbt?
I was thinking about just…
Ben Dilts
- 295
0
votes
1 answer
TextMate Scala bundle
Scala and Textmate have been around for a while, but I wonder why there's no TM Scala Bundle here yet.
Is there a usable one without a hard/uncommon installation process?
The one which is as easy as other common bundles, usually clone or checkout…
Arie
- 363