Fork me on GitHub
#nbb
<
2023-01-11
>
wilkerlucio14:01:42

hello, I'm trying to connect a REPL to nbb via Cursive, does anything has a working path to make it happen?

šŸ‘‹ 2
wilkerlucio14:01:36

but still, it never finishes the connection, tried both socket repl and nrepl

borkdude14:01:39

Please make this known to Colin. Several people have been asking for nbb support in Cursive but there's nothing I can do. nbb nREPL works with emacs, calva, vim, etc.

wilkerlucio14:01:12

thanks @U04V15CAJ, nudging there šŸ™‚

Filipe Silva14:01:33

Iā€™m seeing a somewhat odd difference of behaviour between nbb file.cljs and nbb -e:

filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> nbb -e '(println "hello")\n"world"'
hello
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> cat codeblock.cljs
(println "hello")
"world"āŽ
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> nbb codeblock.cljs
hello
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)>

borkdude14:01:22

This is the same behavior as clojure

borkdude14:01:32

-e prints the value, but executing a file doesn't

Filipe Silva14:01:40

bb will print the value when executing the file though

Filipe Silva14:01:44

filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> bb -e '(println "hello")\n"world"'
hello
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> cat codeblock.clj
(println "hello")
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> bb codeblock.clj
hello
"world"
filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)>

borkdude14:01:04

yes, bb has had the "different" printing behavior but it wasn't changed because it would be breaking

Filipe Silva14:01:28

I see what you mean with clj

Filipe Silva14:01:31

filipesilva@Filipes-MBP ~/L/M/i/D/p/babashka (master)> clj codeblock.clj
WARNING: Implicit use of clojure.main with options is deprecated, use -M
hello

Filipe Silva14:01:48

thank you for explaning this to me šŸ™

borkdude15:01:59

no problem :)