I feel like I'm going insane. I'm trying to write a oneliner with bb -e and from what I can tell, the output always ends in a newline. I don't want the newline. First: am I crazy? Second: is there a way to turn that off?
Yes just use print instead of println
I'm not actually printing anywhere, the output is just whatever the oneliner evaluates to. Like for example: bb -e '5' outputs:
5
nlNot literally nl, but you get the idea
Downstream sees a newline
My suggestion is to actually explicitly print to change the printing behavior
I'll give that a try, thanks 👍🏻
Just reporting in that most of my problem was actually pebcak and has been resolved (classic, right?). Good to know that I can control printing explicitly, though
np
Another question about Babashka: I might be doing this wrong, but I'm problems with stacktraces when I am running under nREPL
I do a load-file (nREPL operation) to load my file, then I evaluate something, and I get back essentially only internal stuff - core.clj, protocols, sci stuff, but nothing on my source code.
Pinging you just to be sure I'm not doing anything wrong 😄
oh crap I hoped you would forget about it. j/k. would you mind filing an issue about this? then I can see what I can improve about it. it's true that the internal stacktrace is pretty useless. it also happens a lot with tests. a situation I've been trying to improve but it's hard
No worries, I'll make a small code to reproduce things and fill an issue, thanks 👍
Let me get back to you after bb conf and DCD if nobody else has