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
4 votes
0 answers
215 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
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
3 answers
715 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
2 votes
1 answer
548 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
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
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
-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
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
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
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