babashka

https://github.com/babashka/babashka. Also see #sci, #nbb and #babashka-circleci-builds .
bherrmann 2021-05-23T03:40:31.102200Z

Perhaps native binary is not what I need. I have something like 10 command line programs that I would like to deliver to my colleges who are on linux/osx/windows. For OSX and Linux, I can just deliver #!/usr/bin/env bb - assuming my windows devs are not using wsl, is there something similar for windows? or would they need to invoke

c:\&gt; bb c:\scripts\<http://stats.bb|stats.bb> arg1
vs
$ stats arg1  # on Linux or OSX

borkdude 2021-05-23T06:48:28.103700Z

The babashka book has a recipe for a .bat shebang. I can find the link for you when Iā€™m back at a computer

borkdude 2021-05-23T06:49:05.104800Z

You will need to create separate .bat scripts for those, but you can of course script that

borkdude 2021-05-23T06:49:56.105800Z

An alternative, if the scripts are part of a project, is to use the new task runner

Olical 2021-05-23T14:37:54.107700Z

Hey! Before I go raising issues and trying to maybe fix things, has anyone noticed errors being truncated when talking with bb over nREPL? I only seem to get the first line of output out, the details including the exchanged nREPL messages are in my issue here https://github.com/Olical/conjure/issues/206 It looks like the error is caught and sent back out of the nREPL, but only the first line of it's message :thinking_face:

Olical 2021-05-23T14:38:19.107900Z

I'm hunting around for any existing open issue about this topic but I can't find anything.

Olical 2021-05-23T14:41:04.108900Z

Also I added support for auto repling into babashka when no other nREPL server is detected today! https://asciinema.org/a/415758 (on the develop branch for now while I dogfood + await feedback)

šŸ‘ 2
šŸŽ‰ 6
borkdude 2021-05-23T14:44:06.109100Z

@olical Could be a bug, I'm not sure. Feel free to raise an issue + PR against babashka.nrepl

borkdude 2021-05-23T14:44:17.109300Z

The test suite of that project is pretty good