This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-16
Channels
- # babashka (40)
- # beginners (71)
- # calva (65)
- # cider (8)
- # clerk (10)
- # clj-kondo (14)
- # clojure (58)
- # clojure-austin (5)
- # clojure-czech (1)
- # clojure-europe (24)
- # clojure-nl (1)
- # clojure-uk (6)
- # core-matrix (1)
- # cursive (8)
- # datomic (20)
- # docker (38)
- # emacs (2)
- # events (1)
- # fulcro (4)
- # funcool (3)
- # hyperfiddle (77)
- # introduce-yourself (1)
- # lsp (31)
- # malli (32)
- # off-topic (11)
- # pathom (3)
- # re-frame (11)
- # reagent (15)
- # releases (2)
- # shadow-cljs (38)
- # sql (3)
- # tools-deps (35)
What does babashka uses for pretty-printing exceptions? I was trying to find it in Clojure and then noticed Clojure doesn't give me that. I mean this:
----- Error --------------------------------------------------------------------
Type: java.lang.ArithmeticException
Message: Divide by zero
Location: /Users/jakub/Documents/Projects/et/jkl.clj:1:1
----- Context ------------------------------------------------------------------
1: (/ 1 0)
^--- Divide by zero
----- Stack trace --------------------------------------------------------------
I caught an exception and what to pretty-print it like this (at least if the platforms is bb).this is something built into bb. we can do these tricks from one of the facts that the code is interpreted not compiled like clojure/jvm 🙂
if you want the details: https://github.com/babashka/babashka/blob/master/src/babashka/impl/error_handler.clj
This code could be ported to the JVM as well and be published as a library, e.g. babashka.error
I think exposing this as a library would also help improving this stuff, since there are some things I am not yet happy with, e.g. it should print the exception root message. So I'll give it a try

It will probably not be this week though, but I am working on that part of the code as part of another issue so probably not too long
Oh wow @U04V15CAJ if you could make that available, I'd be very grateful. It's really way more readable than CLJ default errors.
Maybe it could be a special edition of the Berlin Clojure Meetup with a talk about babashka and some other stuff: what are people doing with babashka in their company, etc?
We could use Pitch's office as a location
We're writing tons of babshka these days at Pitch so it makes a ton of sense
(Currently I'm doing TDD for bb scripts, and it's way better than I thought it would be)
How much time? A full day maybe?
workshop 2 hours, keynote 40 minutes, several other 20-30 minute talks, I think this could easily be over half a day, maybe with lunch etc too. we could start late(r) if we can't fill up the day
sounds good! would be really excited for it! 😄
Sounds good. When are you guys free? May, June, something like that?
What should we call it? Berlin Babashka Day?
similar time for me should be good too, would be good to have a month or more of heads up though, 3rd world visa issues i have 😕
That'd be great. Long way for me from Mexico though. Would it be at the time when I'm back seeing family I'd definitely love to come (although travelling in EU is prohibitively expensive for me, but I'd try, after all from CZ it's just a train ride to Berlin). Would that not be the case, I'd be very grateful would the videos be available online.
It's only 4.5h by train from Prague
All good from Prague, the trick is to get from MX to Prague. 2 changeovers and a lot of $$$. I go every other year.
I think I could make that year, yes. I hope so.
Or you all come to MX 😉 It's warm, cheap and the food is great.
@pesterhazy Actually I have a thing end of May probably. So maybe first half of May is better or first half (second week) of June. End of July also works, no plans for August yet, But I guess many people will be with summer break etc.
Would love to attend. Third week of may is complicated due to the long holiday weekend (family trip already planned). There holidays on Monday the first couple of weeks I think. Otherwise, June is great. July / depends on week.
BabashkaConf in Berlin is being planned, in lieu of clojureD. Very exiting :-) We're now picking a date. Any reason why June 10, 2023 may not be optimal?
Note that there's always people who can't make it on a specific date, no matter what date you propose
But it would be good if it didn't co-incide with some other clojure conference (of which there are zero announced currently in Europe AFAIK)
Of course, or maybe it's World Cup or something silly like that
Great! I'll reach out off thread
well since everyone's here, @timok can @U2J6U9D1R reach out to you for berlin things? good friend of mine and would love some berlin-ness 😅
BabashkaConf in Berlin is being planned, in lieu of clojureD. Very exiting :-) We're now picking a date. Any reason why June 10, 2023 may not be optimal?