Fork me on GitHub
#sci
<
2021-12-18
>
ikitommi14:12:25

hi, updating malli tests to latest sci (0.2.7), this evaluation get’s stuck:

(sci.core/eval-string "(fn [_ {::keys [increment]}] (partial + (or increment 0)))")

borkdude14:12:42

stuck in what sense?

borkdude14:12:01

if I eval that I get back a function...

borkdude14:12:25

user=> (((sci.core/eval-string "(fn [_ {::keys [increment]}] (partial + (or increment 0)))") nil {:user/increment 5}) 2)
7

borkdude14:12:13

Need more details. I'm afk for a bit.

borkdude14:12:43

btw 0.2.8 is the latest

ikitommi14:12:23

Error building classpath. Could not find artifact borkdude:sci:jar:0.2.8

ikitommi14:12:47

works from command-line, not in project, will try to isolate, updated all deps.

borkdude14:12:20

ok, will go for a run, will look at repro when I come back 🏃

ikitommi14:12:58

➜  ~ clj -Sforce -Sdeps '{:deps {borkdude/sci {:mvn/version "0.2.7"}, borkdude/edamame {:mvn/version "0.0.18"}}}'
Clojure 1.10.3
user=> (require '[sci.core :as sci])
nil
user=> (sci/eval-string "(inc 1)")
... never completes ...

borkdude14:12:05

We moved to the babashka org, see Sci README

ikitommi14:12:58

missed that, and with 0.2.8 works again:

➜  ~ clj -Sforce -Sdeps '{:deps {org.babashka/sci {:mvn/version "0.2.8"}, borkdude/edamame {:mvn/version "0.0.18"}}}'
Downloading: org/babashka/sci/0.2.8/sci-0.2.8.pom from clojars
Downloading: org/babashka/sci/0.2.8/sci-0.2.8.jar from clojars
Clojure 1.10.3
user=> (require '[sci.core :as sci])
nil
user=> (sci/eval-string "(inc 1)")
2