Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
85 views

When running my Scala script, I'm seeing a warning: > scala upload.scala SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger ...
Wallace's user avatar
  • 18k
1 vote
1 answer
54 views

I have a MyScript.scala file: //> using scala "3" object MyUtils { def sayHello() = println("Hello") } @main def main(): Unit = MyUtils.sayHello(); I successfully run it ...
Wallace's user avatar
  • 18k
4 votes
0 answers
218 views

According to the scala-cli doc you can define a Repo like this: //> using repository "https://maven-central.storage-download.googleapis.com/maven2" And you can specify environment ...
pme's user avatar
  • 14.9k
0 votes
2 answers
1k views

I'm trying to run a scala script through spark shell using the following command: spark-shell -i myScriptFile.scala I can get the above command to work when I have single-line commands, but if I have ...
NicolasCage's user avatar
0 votes
0 answers
105 views

I have a strange behaviour concerning Testing Scala Script Engine. I have the following code: val manager = new ScriptEngineManager(getClass.getClassLoader) val e = manager.getEngineByExtension("...
pme's user avatar
  • 14.9k
0 votes
0 answers
28 views

I like the idea of using Scala as a scripting language (https://www.scala-sbt.org/1.x/docs/Scripts.html). However, it always takes a long time even for a simplest Hello World script to run, presumably ...
SlavaSt's user avatar
  • 1,523
0 votes
3 answers
717 views

I have an Ammonite Script that I want to deliver in a JAR. In another project I want to use this Script - but so far with no success. I tried according to the documentation (sol_local_build.sc): ...
pme's user avatar
  • 14.9k
0 votes
0 answers
154 views

I want to do the following with Ammonite: set -a source .my-env docker-compose up -d My Solution looks like: %("set", "-a") %("source", "./devops/it.env") %("docker-compose", ...) The first 2 ...
pme's user avatar
  • 14.9k
2 votes
1 answer
549 views

I want to use @main like described here: https://ammonite.io/#ScriptArguments @main def all() = { ... } It cannot be resolved in Intellij. I couldn't find an import. I have added these dependencies:...
pme's user avatar
  • 14.9k
3 votes
2 answers
365 views

I am working on a system where I let users write DSLS and I load it as instances of my Type during runtime and these can be applied on top of RDDs. The entire application runs as a spark-submit ...
paulsonvincent's user avatar
11 votes
2 answers
7k views

I have a previously working Scala script that when I try to run it on a new PC, the compilation fails. So I made simple script to test: #!/bin/sh exec scala -J-Xmx2g "$0" "$@" !# println("test") ...
MartasSan's user avatar
  • 155
0 votes
0 answers
245 views

I'm want setup scala script by sbt ways according to document here. A error encountered when execute java -Dsbt.main.class=sbt.ScriptMain -Dsbt.boot.directory=/home/user/.sbt/boot -jar sbt-launch.jar ...
LoranceChen's user avatar
  • 2,574
0 votes
1 answer
162 views

I want to deal with log output with scala script. Like this: java -jar app.jar | log.sc or java -jar app.jar | amm log.sc How to write a log.sc deal with app.jar print logs? motivation Replace ...
LoranceChen's user avatar
  • 2,574
-1 votes
1 answer
24 views

After I change the function name from something else to addOptitrans and recompile, I get the following error: make final_babylon DICTS=.* bash ../bin/babylon_add_optitrans.sh DICTS=.* /tmp/...
vishvAs vAsuki's user avatar
-3 votes
2 answers
130 views

My boss ia bashing Scala language due to an previous experience with ScalaScript from https://scala.com so are there some relationship between they? I am trying to evagelize Scala in my company, so ...
user2324710's user avatar
-3 votes
1 answer
279 views

As part of my learning, I am trying to write the Scala expression into a scala script but struck with an error. The scala code I am having it successfully executed in Scala REPL is def intList = ...
itsraghz's user avatar
  • 1,037
0 votes
1 answer
108 views

I am not using IntelliJ 15 for a long time, but never ever had such an issue. When I do: New Project -> Scala, then everything works fine, but when I do New Project -> SBT, then I can't even have main,...
Cauchy's user avatar
  • 117
24 votes
2 answers
11k views

I'm using Intellij-idea for scala programming (with sbt plugin). I want to know what is the difference between scala classes, scala scripts and scala worksheets. When we use each of them? This will ...
Omid Ebrahimi's user avatar
0 votes
1 answer
259 views

I'd like to create a dummy script (with the prospect of writing a real life script) that invokes for example the Python interactive interpreter from within a Scala process and lets the user fully ...
Erik Kaplun's user avatar
  • 38.5k
0 votes
3 answers
963 views

Groovy Groovy comes with a compiler called groovyc. For each script, groovyc generates a class that extends groovy.lang.Script, which contains a main method so that Java can execute it. The name of ...
Arturo Herrero's user avatar
9 votes
2 answers
2k views

It's possible to write shell scripts in Scala by starting a text file with: #!/bin/sh exec scala "$0" "$@" !# To ease script creation, I would like to write an executable called scalash (perhaps a ...
paradigmatic's user avatar
  • 40.5k