This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-23
Channels
- # aws (3)
- # babashka (17)
- # beginners (44)
- # boot (1)
- # bristol-clojurians (1)
- # cider (19)
- # clj-kondo (7)
- # cljfx (5)
- # clojure (35)
- # clojure-australia (25)
- # clojure-europe (41)
- # clojure-nl (4)
- # clojure-spec (5)
- # clojure-uk (104)
- # clojuredesign-podcast (1)
- # clojurescript (41)
- # component (6)
- # conjure (5)
- # core-async (20)
- # core-logic (5)
- # cryogen (7)
- # cursive (4)
- # data-science (1)
- # datomic (14)
- # devcards (2)
- # events (1)
- # fulcro (6)
- # helix (6)
- # jobs (4)
- # kaocha (4)
- # lambdaisland (4)
- # leiningen (3)
- # luminus (1)
- # malli (2)
- # meander (2)
- # mount (6)
- # off-topic (2)
- # pedestal (25)
- # rdf (1)
- # re-frame (17)
- # reagent (5)
- # releases (1)
- # reveal (13)
- # rewrite-clj (45)
- # shadow-cljs (27)
- # sql (18)
- # tools-deps (93)
- # vim (13)
- # xtdb (11)
Is BigDecimal not supported in babashka? I can call bigdec
fine, but when using with-precision
. I get a “could not resolve symbol”
@max.rothman That's a macro that does seem to be missing from babashka. If you could post an issue about this, it will probably end up in the next release.
Do you know a workaround in the meantime? I tried simply dropping the macro definition into my script and I’m getting errors about a missing binding *math-context*
.
I had to look this up, but this seems to work:
$ bb -e '(.setScale 0.00123M 3 BigDecimal/ROUND_HALF_EVEN)'
0.001M
https://stackoverflow.com/questions/9482889/set-specific-precision-of-a-bigdecimal
I’m trying to use latest babaskha/process in a script, and seeing the following error
java.lang.ClassCastException: java.lang.Class cannot be cast to java.util.concurrent.Future [at /Users/Alid/.gitlibs/libs/babashka/babashka.process/249ddcfd1a5825f33adacc9cfde72a0c3823bdc9/src/babashka/process.clj, line 48, column 1]
could this be a bug? it happens just by requiring babaskha.process
.@alidcastano which version of bb are you using?