announcements

Project/library announcements ONLY - use threaded replies for discussions. Do not cross post here from other channels. Consider #events or #news-and-articles for other announcements.
tony.kay 2021-01-24T00:19:57.043200Z

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

πŸ‘ 8
vlaaad 2021-01-24T20:59:42.045900Z

: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:

πŸ‘ 4
27
πŸš€ 6
borkdude 2021-01-24T21:08:01.047Z

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 ;)

16
πŸš€ 7
πŸŽ‰ 25
pez 2021-01-24T21:39:35.050200Z

Where is babashka.sh? πŸ˜ƒ

borkdude 2021-01-24T21:40:03.050700Z

@pez this is called babashka.process

pez 2021-01-24T22:00:55.051200Z

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

borkdude 2021-01-24T22:01:37.051500Z

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

borkdude 2021-01-24T22:02:43.051700Z

It is high on my list though

pez 2021-01-24T22:04:20.051900Z

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?

borkdude 2021-01-24T22:07:07.052300Z

@pez Check issue 4 and 5.

pez 2021-01-24T22:07:21.052500Z

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.

borkdude 2021-01-24T22:08:30.052700Z

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

borkdude 2021-01-24T22:08:55.052900Z

see https://github.com/babashka/fs/issues/5

pez 2021-01-24T22:11:01.053600Z

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

borkdude 2021-01-24T22:11:25.053800Z

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

borkdude 2021-01-24T22:13:24.054Z

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

borkdude 2021-01-24T22:13:56.054200Z

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

borkdude 2021-01-24T22:14:02.054400Z

but for testing, I would use that one

pez 2021-01-24T22:16:37.054600Z

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

borkdude 2021-01-24T22:18:25.054800Z

@pez 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"]

borkdude 2021-01-24T22:18:51.055Z

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

pez 2021-01-24T22:29:47.055300Z

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