Fork me on GitHub
#announcements
<
2021-01-24
>
tony.kay00:01:57

Guardrails 1.1.3 is on Clojars. This release fixes a bug in async mode where errors were not being reported for Clojure. Clojurescript was not affected. https://github.com/fulcrologic/guardrails

👍 26
vlaaad20:01:42

reveal New version of #reveal — https://vlaaad.github.io/reveal/ `1.3.193` — is out! For this major release I focused on providing a way to interact with Reveal window by submitting commands, allowing to easily build better IDE integration. You can learn more in the new readme section: https://vlaaad.github.io/reveal/#interacting-with-reveal-from-code Here is a little demo using Cursive:

reveal 82
🚀 18
👍 13
borkdude21:01:01

Released babashka 0.2.8 with additional built-in libraries: - core.match (much requested) - clojure.test.check (prep for including spec once it comes out of alpha) - hiccup (who doesn't use it?) https://github.com/babashka/babashka/blob/master/CHANGELOG.md#v028 Hop by in #babashka for questions and complaints ;)

🎉 75
babashka 48
🚀 21
pez21:01:35

Where is babashka.sh? 😃

borkdude21:01:03

@U0ETXRFEW this is called babashka.process

pez22:01:55

Yeah, babashka.process is wonderful. I confused things and meant to lob for babashka.fs.

borkdude22:01:37

@U0ETXRFEW That lib is not done yet. I'm stuck on the glob function :/ If you want to help me, that'd be great.

borkdude22:01:43

It is high on my list though

pez22:01:20

glob happens to be what I most want to have. 😃 I would love to help, even if I doubt I know how to. How are you stuck?

borkdude22:01:07

@U0ETXRFEW Check issue 4 and 5.

pez22:01:21

I just have to share how I do it in lack of babashka.fs.

(defn glob [pattern]
  (-> (shell/sh "bash" "-c" (str "ls " pattern))
      :out
      (#(when-not (= % "")
          (string/split % #"\n")))))
Actually works pretty well.

borkdude22:01:30

so you are using the bash definition of glob. there are different defaults, recursive, not recursive

pez22:01:01

Are there difficulties in implementing the recursive version or is it more a matter of deciding which one to use?

borkdude22:01:25

deciding which one to use as the default, also, include hidden dirs by default or not?

borkdude22:01:24

I have a work in progress version in the glob branch which can be run only from clojure currently

borkdude22:01:56

because I'm using java.nio.file.DirectoryStream which is not yet available in bb

borkdude22:01:02

but for testing, I would use that one

pez22:01:37

Could it be an option? I think non-recursive makes a good default, if I can opt in on the recursion.

borkdude22:01:25

@U0ETXRFEW That's what I've done in the glob branch:

$ clj -A:babashka.fs/dev
Clojure 1.10.2-alpha2
user=>  (require '[babashka.fs :as fs])
nil
user=> (fs/glob "." "**/*.md")
[]
user=> (fs/glob "." "**/*.md" {:recursive true})
[#object[sun.nio.fs.UnixPath 0xdab48d3 "/Users/borkdude/Dropbox/dev/clojure/babashka/sci/CHANGELOG.md"]

borkdude22:01:51

but it might be a bit silly when searching for "**/*.md" to not have it recursive, since it won't match anything

pez22:01:47

Yeah. So that explains why some ignore files do not seem to work for me.