babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
2021-04-19T03:46:38.269500Z

What's the process for releasing the next version of a Babashka Pod? Specifically pod-babashka-etaoin, PR#4 has already been merged but it's still not released. Alternatively, is there a way to use the pod without waiting for a release?

borkdude 2021-04-19T07:16:50.270200Z

I will release it, just forgot about it

2021-04-19T07:51:53.273900Z

Just watched the video on tasks. Looks really promising! To the scenario at the end of using shell instead of :depends to ensure that stuff are run sequentially, could you not just use a vector of vectors? So everything on the same level of the vector could run in parallel. Ex :depends [clean [jar]] would run sequentially, whilst :depends [css cljs] would run in parallel.

2021-04-19T07:58:14.274500Z

Figured it would be a bad idea

2021-04-19T08:03:07.275700Z

Better to maybe have a function that annotates the stuff that can run in parallel. :depends [clean (ex/parallel css cljs)]

borkdude 2021-04-19T08:18:31.276Z

@jvtrigueros Should be released now

🎉 1
vlad_poh 2021-04-19T11:22:37.277400Z

howdy y'all! What is the quickest way to get an editor with a babashka repl. Ideally single click. On windows. Think Powershell ISE

borkdude 2021-04-19T11:23:01.277800Z

@kbosompem VSCode with Calva for sure

👍 1
borkdude 2021-04-19T11:24:28.279Z

@kbosompem The sequence of actions is: In terminal: bb nrepl-server Start VSCode Install calva plugin. In the command palette: Calva: connect to a Running REPL server not in project and then enter the port number (default for bb nrepl-server = 1667)

borkdude 2021-04-19T11:25:26.279300Z

Not a single click but easy enough

borkdude 2021-04-19T11:26:59.280600Z

My clj-kondo and babashka builds build on different CIs and in different steps. I wanted to have a script that uploads artifacts from those different CIs/steps to a new or existing draft release so I don't have to do that manually anymore. I cobbled a script together here: https://github.com/borkdude/test-repo/blob/main/script/release.clj I still have to hook it up to the CI builds but locally it works pretty nice already.

vlad_poh 2021-04-19T11:28:55.281900Z

@borkdude definitely not a single click but good enough. Thanks!

pez 2021-04-19T15:00:35.283Z

TIL. bb nrepl-server has a default.

👍 1
borkdude 2021-04-19T15:02:28.283500Z

This also works:

$ bb nrepl-server 0
Started nREPL server at 127.0.0.1:54561
but then the port number is random, and there is not a really nice way to get the port number besides copy pasting it yourself

richiardiandrea 2021-04-19T19:02:45.284600Z

nrepl usually writes the port to a file, does bb nrepl-server do the same?

borkdude 2021-04-19T19:07:55.284900Z

It doesn't currently do that. It wasn't clear what to do here, since you might also have a Clojure REPL in the project and then you would have conflicting files. There is a script here which can help with that. https://book.babashka.org/#_nrepl

richiardiandrea 2021-04-19T22:57:01.287300Z

oh I see..I see the problem with two of them opened at the same time