Fork me on GitHub
#cider
<
2022-09-20
>
jpmonettas12:09:09

Hi everybody! I'm missing some printlns in my multithreaded application and trying to make everything to use the same PrintWriter I see cider nrepl is returning a different PrintWriter in *out* every time I call it, which is different from the clj repl behavior.

user> *out*
#object[java.io.PrintWriter 0xfd3434c "java.io.PrintWriter@fd3434c"]
user> *out*
#object[java.io.PrintWriter 0x2229c88a "java.io.PrintWriter@2229c88a"]
user> *out*
#object[java.io.PrintWriter 0x1a8cdc5e "java.io.PrintWriter@1a8cdc5e"]
Is this because the nrepl server is creating a new PrintWriter for every request? what is the correct way of using printlns in cider repl without missing some printlns outputs?

torgeir19:09:15

Is it possible to have cider (or clojure-lsp) support code navigation and autocomplete for npm packages and native node modules like "fs" through shadow-cljs? (I was directed here from #shadow-cljs where I asked a similar question)

ericdallo00:09:36

at least for clojure-lsp, ATM no, but would be a nice addition to cljs ecosystem