This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-23
Channels
- # announcements (5)
- # babashka (22)
- # beginners (240)
- # calva (51)
- # clj-commons (1)
- # cljsrn (9)
- # clojars (12)
- # clojure (81)
- # clojure-australia (2)
- # clojure-europe (40)
- # clojure-france (10)
- # clojure-italy (1)
- # clojure-nl (2)
- # clojure-uk (37)
- # clojurescript (59)
- # clojureverse-ops (2)
- # copenhagen-clojurians (1)
- # cursive (9)
- # datomic (18)
- # emacs (12)
- # fulcro (24)
- # graalvm (48)
- # hyperfiddle (5)
- # introduce-yourself (1)
- # jackdaw (1)
- # jobs (2)
- # juxt (8)
- # lsp (25)
- # malli (8)
- # missionary (1)
- # music (3)
- # off-topic (32)
- # polylith (16)
- # quil (4)
- # re-frame (52)
- # reitit (5)
- # reveal (3)
- # rewrite-clj (26)
- # rum (1)
- # sci (1)
- # shadow-cljs (14)
- # sql (2)
- # tools-build (40)
- # tools-deps (14)
- # vrac (2)
- # xtdb (63)
I see java.util.stream.BaseStream
in babashka.impl.classes
(https://github.com/babashka/babashka/blob/master/src/babashka/impl/classes.clj#L438-L439) but am not seeing it available:
% bb --version
babashka v0.6.1
% bb -e "(import 'java.util.stream.BaseStream)"
----- Error --------------------------------------------------------------------
Type: java.lang.Exception
Message: Unable to resolve classname: java.util.stream.BaseStream
Location: <expr>:1:1
----- Context ------------------------------------------------------------------
1: (import 'java.util.stream.BaseStream)
^--- Unable to resolve classname: java.util.stream.BaseStream
----- Stack trace --------------------------------------------------------------
user - <expr>:1:1
Yup, that was it: https://github.com/babashka/babashka/pull/1013
Is there a way to use babashka/fs to delete a non empty directory without using fs/delete-tree ?
Sorry for the question; I thought it was slow because it was deleting every file in the tree one by one but now I realise it’s slow because there is a nested node_modules folder… it’s as fast as rm -rf
FYI: there is a #babashka-sci-dev channel for discussion dev related stuff of bb and sci itself. The channel used to be private but there is no reason for the channel to be private. So I created another one which is public.
I remember babashka has a way to declare a dependency to load at runtime, but can’t remember how, can someone bring an example?
Interesting mention of Babashka here https://tonsky.me/blog/python-build/
Maybe he is and it didn't meet his needs. Could be worth to get a user report from him
But I guess it's hard competing against Python in this environment: > JetBrains isn’t known for its love for Clojure, and other people who wanted to participate would have to learn it
> I’d probably try it again in when it matures and when the rest of the code will already be in a Clojure. Then it’ll be a match made in Heaven. I think he wants it to work
i think getting user report from him is really valuable. He mentioned having difficulty with fs, and process. i think the babashka process handling is quite joyful to use. really want to know what's the gap in between.
I’ve already talked to him. Many functions he implemented himself were already in fs and he was in a hurry. I can’t help someone who doesn’t reach out with feedback unfortunately
Quick question -- is there a way to callout to code inside of file listed in :paths
during Babashka :tasks
?
I want to call foo (service.make/foo)
, but I have to set tasks :init (load-file "scripts/service/make.clj")
to get this working
If I'm understanding the question, you can use :requires
assuming that src/foo.clj
exists with (ns foo)
and a make-service
function:
{:paths ["src"]
:tasks {:requires ([foo])
foo (foo/make-service)}}
there is also a mechanism to provide requires for a specific task: https://book.babashka.org/#_task_local_options