This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-23
Channels
- # babashka (22)
- # beginners (8)
- # calva (7)
- # clj-kondo (65)
- # cljdoc (9)
- # cljsrn (1)
- # clojure (53)
- # clojure-australia (4)
- # clojure-europe (49)
- # clojure-gamedev (2)
- # clojure-italy (13)
- # clojure-nl (1)
- # clojure-spec (19)
- # clojure-uk (4)
- # clojurescript (48)
- # clojureverse-ops (1)
- # core-async (3)
- # css (2)
- # cursive (15)
- # datomic (6)
- # degree9 (2)
- # depstar (4)
- # emacs (2)
- # find-my-lib (1)
- # fulcro (16)
- # graalvm (11)
- # gratitude (1)
- # honeysql (9)
- # introduce-yourself (2)
- # jobs (1)
- # joker (2)
- # livestream (2)
- # malli (16)
- # nbb (4)
- # news-and-articles (2)
- # off-topic (1)
- # pathom (7)
- # polylith (10)
- # practicalli (1)
- # re-frame (7)
- # reitit (1)
- # releases (3)
- # remote-jobs (1)
- # rewrite-clj (19)
- # shadow-cljs (10)
- # tools-build (1)
- # tools-deps (9)
- # uncomplicate (1)
- # vim (3)
- # xtdb (44)
How am I supposed to use Tools -> REPL -> Send (function under caret) to REPL
? If I try it when in the user
ns, I get the error :namespace-not-found
, even when the function is itself only using functions that are from clojure.core
. If I first use Tools -> REPL -> Switch REPL NS to current file
then the error is instead Unable to resolve symbol: defn in this context
, which seems to be because by switching the REPL NS it's lost all of the references to clojure.core
functions/macros.
I'm sure this is something I'm doing wrong, rather than something broken with Cursive, but I don't know what that is
No worries - the usual confusion is that forms sent from the editor are (by default) executed in the namespace of the file they’re sent from, not the current REPL ns.
How to troubleshoot when Parinfer seems not to work? I press tab an expect the sexp to get idented (works) and the close paren of the sexp on the previous line to be moved after it (i.e. slurp) but this does not work. I only get a red underlining with "incorrect indentation for parinfer" 🙏
(FYI Slurping via paredit works but takes a few seconds, on this 40 line let
)
Update: When I start writing eg. a defn
then parinfer warns about incorrect indentation. So I guess my question actually is: How do I find where the indent. is wrong, and how best to fix it?
I struggle with this too. Best advice I can offer is to look for the first red squiggly and start fixing from there downward
When there’s incorrect indentation, you’ll see the indentation marked in red in the margin, like this:
Thanks a lot for the advice! Will try.
Thanks for letting me know! That’s the first feedback I’ve received, glad to know it’s working. Let me know if there are any issues.
oh there’s babashka support? well that’ll accelerate my plans to learn babashka. 👀
That’s in the latest EAP: https://groups.google.com/g/cursive/c/LTrXa9_34C0/m/MxCVRuErBgAJ