Open jk-1 opened 1 year ago
Hi. Something similar happens to me when I try to use the requests-scala library to .get an image file, from the repl cmdline - it works fine in a .sc script.
% amm Loading... Welcome to the Ammonite Repl 3.0.0-M1 (Scala 3.3.3 Java 21.0.2) @ val response = requests.get("https://httpbin.org/image/webp") java.lang.IllegalArgumentException: Unknown ansi-escape at index 754 inside string cannot be parsed into an fansi.Str
I'm trying to run simple
ssh-ping
command using ammonite but it fails.ssh-ping
is part of small optional Ubuntu packagessh-tools
.On Mate terminal command output when pinging non-existing host is this:
Output is very colored and there is no option in
ssh-ping
to turn off colors.Running this with standard Scala REPL works fine:
But when trying to run the same with Ammonite, I get repeatedly this exception:
It also fails with Ammonite and os.lib's
os.proc(...).call(...)
-function.Versions: Ubuntu 20.04, Ammonite Repl 2.4.0 (Scala 2.12.13 Java 11.0.18)
I opened this issue here because don't know whether this is fansi issue, ammonite issue or common for both packages.