This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-13
Channels
- # announcements (2)
- # babashka (2)
- # beginners (112)
- # calva (29)
- # cider (33)
- # clj-kondo (41)
- # cljdoc (10)
- # cljs-dev (2)
- # clojure (72)
- # clojure-berlin (3)
- # clojure-europe (10)
- # clojure-italy (6)
- # clojure-nl (15)
- # clojure-spec (5)
- # clojure-uk (40)
- # clojurescript (1)
- # clr (6)
- # community-development (6)
- # core-async (21)
- # cursive (42)
- # datascript (12)
- # duct (6)
- # flambo (1)
- # fulcro (50)
- # jobs (1)
- # leiningen (3)
- # off-topic (16)
- # re-frame (6)
- # reagent (23)
- # reitit (7)
- # ring-swagger (14)
- # shadow-cljs (35)
- # tools-deps (39)
- # vim (12)
@pez any updates on #218? (https://github.com/BetterThanTomorrow/calva/issues/218) I've been updating/packaging a custom build for my team since the logging helps us during development of our data streams (which log inside go-loops).
Thanks, @alex-eberts. And thanks for giving it context. That makes it much easier for people to figure out if they can help with fixing the issue.
Is there a way to get the "Evaluate current form/selection and pretty print to output" command to print in real time?
would take 5 seconds to print this all at once:
stdout:
starting
ending
starting
ending
starting
ending
starting
ending
starting
ending
while evaluating this expression in the basic clojure
terminal REPL would live-print the println
s
Not yet, @salaun.clement, but there are others asking for it, so I will probably pick it up soon. Cheer it on here: https://github.com/BetterThanTomorrow/calva/issues/218
As is mentioned in that issue, a workaround is to run a command like lein repl :connect
(or the CLI or shadow equivalents) in a VS Code terminal window and eval in that repl prompt.
@pez I verified https://github.com/BetterThanTomorrow/calva/issues/314#issuecomment-531281592 and the issue appears to be fixed at a high level by Calva v2.0.37. Please see the "Additional Notes" section for a spurious warning regarding cider-nrepl
. Also, pretty printed output is not appearing in the Calva REPL but I see that there are other issues regarding pretty printing and nrepl so maybe it's related to the cider-nrepl warning? Happy to open new issues and continue to test.
@pez Great work by the way! :the_horns:
https://gist.github.com/bpringe/4f1d07f98633a956a8b33af572e7b810 I wrote this semi-concise guide to getting started with Clojure on Windows (with Calva đ), for a friend and anyone else who might find it useful. There are a few other similar ones out there, but one more (possibly more straightforward) couldn't hurt.
Thatâs some serious testing, @alex-eberts. I love it. The output issue is because shadow-cljs sends output out of band, and Calva expects it to come along with the evaluation results. It is worth an issue of its own, actually. Iâll file one if I remember to tonight. The cider-nrepl warnings are strange⊠What version of shadow-cljs are you using?
Thatâs interesting re: shadow-cljs
. I agree that itâs a worthy issue because not having the output in the REPL breaks one of the core benefits of a REPL-driven workflow IMHO.
Re: shadow-cljs
version I have [thheller/shadow-cljs "2.8.52"]
in my test project.
@pez I'm looking into the cider-nrepl requires Leiningen 2.8.3 or greater
issue. The message appears to be coming from the cider-nrepl
lib: https://github.com/clojure-emacs/cider-nrepl/blob/64694d98e15a48ffd294b0902d90bba5966b21c1/src/cider_nrepl/plugin.clj#L49.
Oops - that should be https://github.com/clojure-emacs/cider-nrepl/blob/64694d98e15a48ffd294b0902d90bba5966b21c1/src/cider_nrepl/plugin.clj#L47
I will explore why leiningen.core.main/version-satisfies?
reports a different version than the leiningen installed on my mac via brew
.
Wonderful, @brandon.ringe! I wish more people would write Clojure tutorials involving Calva. đ Right now my family expects me to deliver Ramsey quality burgers, so will have to read later. Will get back to you with feedback when I have read it.
Re: those burgers. My oldest son and I team up and do as Ramsey says. It is a hit every time. If you like burgers and grilling, I recommend watching and getting inspired: https://www.youtube.com/watch?v=iM_KMYulI_s