This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-08
Channels
- # announcements (6)
- # atom-editor (1)
- # babashka (21)
- # beginners (70)
- # clerk (4)
- # clj-kondo (70)
- # clj-yaml (1)
- # clojure (53)
- # clojure-art (1)
- # clojure-denmark (1)
- # clojure-dev (1)
- # clojure-doc (1)
- # clojure-europe (31)
- # clojure-nl (1)
- # clojure-norway (41)
- # clojure-uk (15)
- # clojurescript (36)
- # conjure (1)
- # cursive (2)
- # datomic (14)
- # duct (8)
- # emacs (12)
- # etaoin (176)
- # gratitude (25)
- # hyperfiddle (17)
- # jobs (1)
- # juxt (5)
- # london-clojurians (1)
- # malli (3)
- # nbb (21)
- # off-topic (29)
- # reitit (12)
- # releases (2)
- # remote-jobs (7)
- # shadow-cljs (9)
- # testing (9)
Hi @borkdude. I came across this weird issue running bb on WSL. Posted https://github.com/babashka/babashka/issues/1512. If I've done something stupid I'll delete the issue.
@U03L9U301RV I'll see if I can reproduce it
@U04V70XH6, Thanks! stty sane
works, even though I can't see myself typing it. It's weird!
Heh, stty sane
is pretty much "muscle memory" for me at this point -- so many processes seem to leave the terminal in a bad state when quitting them...

(or maybe I'm just a bad user who breaks stuff more often than necessary? ๐ )
@borkdude Yup that fixed it. Using clj
was messing with it. Changing it to clojure
worked! Thanks!
Update: I upgraded my clj to 1.11.1.1252
. Wanted to use clj instead of clojure but still had the same issue. I think borkdude is right that its to do with rlwrap
. Worked around it with setting an environment variable. (Don't know if it's relevant, but haven't tested on WSL2, I'm using WSL1.)
@U03L9U301RV In CI environments it's usually better to use clojure
rather than clj
. Note that with bb you can run (clojure ...)
in bb.edn
which doesn't even require you to install clojure
externally
True. Sorry, I did write on "platform" that is was "version 1" but I should have made that clearer.
Iโm having trouble requiring the datomic.ion-dev
dependency available in babashka.
https://gist.github.com/olivergeorge/f402c8dc8acd469717d5c6008b2c611b and https://clojurians.slack.com/archives/C03RZMDSH/p1678290630727719?thread_ts=1678285600.007399&cid=C03RZMDSH`ion-dev/push`https://clojurians.slack.com/archives/C03RZMDSH/p1678290630727719?thread_ts=1678285600.007399&cid=C03RZMDSH inspired me to bundle up the deploy of a Datomic Ion using babashka. Unfortunately, I canโt figure out how to get the
namespace loaded in babashka.
With this bb.edn
{:paths ["bb"]
:deps {com.datomic/ion-dev {:local/root "./ion-dev-1.0.306.jar"}
com.cognitect/anomalies {:local/root "./anomalies-0.1.12.jar"}}}
This is what I get:
Babashka v1.1.174 REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[datomic.ion.dev :as ion-dev])
java.lang.Exception: Could not find namespace: datomic.ion.dev. [at <repl>:1:1]
user=>
I have the same problem defining the dependency in a bb.edn
file. And I do not have the problem with other jar dependencies.
------------
The ion-dev jar file is not available in maven or on github, but you can pull it down from s3 using this deps.edn
config:
:mvn/repos {"datomic-cloud" {:url ""}}
Then, just copy the jar to the local bb project directory.@U0698L2BU It's likely that the datomic jar only contains .class
files. Babashka only loads sources from source files, not .class
files. It can also not load any Java classes that weren't already included in bb