This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-24
Channels
- # announcements (1)
- # aws (140)
- # beginners (41)
- # calva (47)
- # cider (43)
- # clj-kondo (36)
- # clojure (178)
- # clojure-europe (12)
- # clojure-gamedev (2)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-russia (3)
- # clojure-spec (37)
- # clojure-uk (97)
- # clojurescript (173)
- # core-async (16)
- # cursive (18)
- # data-science (2)
- # datascript (6)
- # datomic (32)
- # dirac (16)
- # duct (16)
- # events (2)
- # figwheel-main (7)
- # fulcro (8)
- # graalvm (18)
- # immutant (3)
- # joker (2)
- # kaocha (8)
- # nrepl (6)
- # nyc (2)
- # off-topic (62)
- # quil (3)
- # re-frame (18)
- # reitit (6)
- # ring-swagger (1)
- # shadow-cljs (119)
- # spacemacs (4)
- # specter (2)
- # tools-deps (10)
- # vim (58)
- # xtdb (9)
Hi there, I’m having problem with lots of output to new repl window, it starts to be very slow with time. Is there any workarounds to this?
I meant when I eval something like (run! #(println {:a :b :c :d :e :f :g %}) (range 1000))
a few times in a row new repl becomes unresponsive, but if I eval it using terminal repl (using eval inline and Calva says) it’s working much faster
OK. So that slowdown I am aware of. I've filed an issue about it. But there is no remedy yet. I recommend using the editor to evaluate most things, rather than the REPL prompt.
Dear Calva-friends: There is a new linting extension in town. It bundles clj-kondo
so there is zero install except the extension itself. Seems to work fabulously with Calva and I'd like to bundle it and remove the linting support from the Calva code. Today Calva uses Joker and process its output. But with this new extension Calva wouldn't have to do anything, so much more bliss. The clj-kondo extension is published by @borkdude (yes, the same dude as with clj-kondo itself).
Please help with giving the clj-kondo extension some testing, so that we find and can fix any quirks before releasing a Calva that bundles it.


Hello. 🙂 Today I discovered the commands Print to comment
and Print to result
. However, when I try to execute them with a simple expression (+ 1 2)
, I get a notification, that the command is not enabled in the current context. Could anyone point me to the root of this?
😞 Sorry, @pez, again a confusion on my end. Everything works as expected. Sorry for waiting your time.
Welcome, @elena_sev !
I tried this out with Calva on WSL and got some odd errors, such as "unresolved symbol _." I tried suppressing this with a config.edn file in .clj-kondo subdir of project directory, but it didn't help (not sure I got the config right though). I get the same error when using clj-kondo --lint from the command prompt.
It's this form in a re-frame app: (rf/reg-event-db ::initialize-db (fn-traced [ ] db/default-db))
:lint-as {day8.re-frame.tracing/fn-traced cljs.core/fn}
Still getting error: unresolved symbol _
where foo.bar is the namespace where fn-traced comes from (I suspect re-frame.core or something)
Thanks, I'll try that when I get a chance. I think we ordinary mortals will need more guidance on configuring the clj-kondo extension if this becomes the Calva default. This is a somewhat mysterious incantation.
@agold More information here: https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#lint-a-custom-macro-like-a-built-in-macro
Doesn’t mean I don’t think we should provide guidance (we do, a bit, with Joker today), just that the situation wouldn’t be introduced by switching the default.
A link to https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#exclude-unresolved-symbols-from-being-reported and https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#lint-a-custom-macro-like-a-built-in-macro would probably lead to the most useful configuration options.
@pez I’ve been trying to use this extension with coworkers who refuse to learn emacs (we do pair programming at work) and have been running into a bunch of mysterious problems. First, sometimes when the connected repl quits, it seems to be impossible to restart it (I.e. jack in does nothing and clicking the status bar icon doesn’t pop up the menu). Second, occasionally the automatic indentation stops working and every new line is sent all the way back to the left margin.
Otherwise, it’s a great extension
If it makes any difference I’m seeing this in a Leiningen project.
My team doesn’t use the new deps.edn stuff yet.
Sorry to hear that it is acting up for you, @fiddlerwoaroof. I don’t recognize any of the problems. Please keep us updated with any clues about when this happens. When the indentation stops working. What do you need to do to make it work again?
Reload the window.
I’m thinking the errors could be related. It sounds like Calva gets a bit disabled for you and that it makes the command for jack-in not being there and the formatter to stop helping.
If that is so, it leaves us with the questions: 1. Why would Calva get disabled? And, 2. Why does your REPL quit at times?
Independently, I noticed that if I use VScode’s task management features to kill the repl, Calva doesn’t realize its repl has died.
I wonder if Calva isn’t receiving task status notifications correctly?