sci

Samuel Ludwig 2023-07-18T02:39:22.122979Z

Encountering some behavior I don't really understand on windows (WSL), which seems to be stemming from some interaction with sci (and perhaps clojure-1.12.0-alpha4) Whenever I try to add the org.babashka/sci lib (tried with a few versions), I get an Execution error (ExceptionInfo) at clojure.tools.deps.interop/invoke-tool (interop.clj:49) error to reproduce:

$ clj -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.12.0-alpha4"}}}'

user=> (require '[clojure.repl.deps :refer [add-libs]])
nil
user=> (add-libs '{org.babashka/sci {:mvn/version "0.8.40"}})
<aforementioned error>
null
this is unfortunately causing my current efforts of playing with another library to brick :^( I don't believe I've encountered this on my linux-box before, so i feel like it must be something to do with windows/WSL, but I will try that example on it again in the morning, to be sure.

Samuel Ludwig 2023-07-18T02:44:52.509349Z

Interesting, after further study it turns out that if I include sci from the start, it seems to load fine clj -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.12.0-alpha4"} org.babashka/sci {:mvn/version "0.8.40"}}}'

Bob B 2023-07-18T02:46:11.240569Z

I don't know the exact version numbers, but a thing that I often see recommended with add-libs is to make sure the clojure CLI is up-to-date... does add-libs work with other libs on that setup? (trying to narrow down variables)

Samuel Ludwig 2023-07-18T02:46:27.834339Z

ahhh I just saw this https://clojurians.slack.com/archives/C03S1KBA2/p1688246136746249

Samuel Ludwig 2023-07-18T02:46:43.445909Z

right maybe that is it, I'll give that a check

Samuel Ludwig 2023-07-18T02:50:23.470579Z

that seems like it may have done the trick!

Samuel Ludwig 2023-07-18T02:51:08.911409Z

thank you @highpressurecarsalesm! ive been scratching my head for a while here 😅

👍 1