This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-18
Channels
- # announcements (1)
- # asami (2)
- # babashka (21)
- # beginners (23)
- # cider (5)
- # clj-kondo (10)
- # clojure (31)
- # clojure-europe (3)
- # clojure-nl (1)
- # clojurescript (47)
- # deps-new (1)
- # figwheel-main (7)
- # fulcro (7)
- # gratitude (1)
- # jobs-discuss (2)
- # lein-figwheel (1)
- # lsp (5)
- # off-topic (11)
- # pathom (5)
- # re-frame (1)
- # react (5)
- # reagent (4)
- # releases (1)
- # shadow-cljs (63)
- # tools-deps (16)
- # xtdb (26)
Cursive 1.11.0 is out with support for babashka: https://groups.google.com/g/cursive/c/oUcT-S1MkHk/m/G8aai6Z6CgAJ https://cursive-ide.com/userguide/babashka.html
Is there any way to set default ns in Babashka preloads? I have preloads.clj
file loaded via (load-file)
and I want to run bb '(foo)'
instead of bb '(preloads/foo)'
I found workaround export BABASHKA_PRELOADS=
cat preloads.clj`` but removed (ns preloads) in the begining of the file
yeah, that is the correct workaround, just define your functions in the user
namespace
thank you
With babashka I started to forget linux commands and their complex parameters. I think about to create preloads.clj
file with common functions like: ls, grep, find, etc., but with clojure syntax and more simple parameters. Is there any examples of such preloads files with a bunch of every day functions?
I need a hammock time. ๐
Am I doing this wrong or doesn't this library work with bb?
rhea ~mess%ย cat bb.edn
{:deps {fr.jeremyschoffen/prose-alpha {:mvn/version "30"}}}
rhea ~mess%ย bb -e "(require '[fr.jeremyschoffen.prose.alpha.reader.core :as reader])"
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message: Could not resolve symbol: *clojure-version*
Location: clojure/tools/reader/impl/utils.clj:17:35
That's one of the issues. I don't know what this project uses. Co-incidentally, it does offer ability to run within SCI so you could compile your own graalvm binary which can run this stuff
note that the code is pulled in from clojure.tools
hmhm, then it goes on with
java.lang.Exception: Unable to resolve classname: java.io.Closeable [at clojure/tools/reader/reader_types.clj:14:3]
i'll try the other way then
we can add Closeable for sure, but probably not support tools.reader from source right now. I see it also uses instaparse which is also complicated probably
i thought clojure.tools.reader was more core than it is, it's fine ๐