This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-11
Channels
- # announcements (6)
- # architecture (9)
- # beginners (120)
- # calva (13)
- # cider (28)
- # clj-kondo (8)
- # cljs-dev (7)
- # clojure (113)
- # clojure-europe (13)
- # clojure-italy (7)
- # clojure-nl (9)
- # clojure-spec (44)
- # clojure-uk (7)
- # clojuredesign-podcast (15)
- # clojurescript (18)
- # cursive (9)
- # data-science (3)
- # datomic (32)
- # defnpodcast (1)
- # events (2)
- # fulcro (6)
- # jobs (1)
- # kaocha (5)
- # london-clojurians (2)
- # luminus (2)
- # nyc (2)
- # off-topic (54)
- # ring (6)
- # shadow-cljs (136)
- # sql (1)
- # testing (2)
- # tools-deps (64)
- # vim (83)
when trying to view the docstring for this function by typing (doc foo)
into calva, I get CompilerException java.lang.RuntimeException: Unable to resolve symbol: doc in this context...
. Am I doing something wrong?
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
That looks right. I think you need to use
some namespace, or something, for doc
to be available. Iirc I’ve added a command for that, forgot what I named it though...
@adamfranzen The command is Calva: Require REPL utilities, like (doc) etcetera, into Current Namespace ctrl+alt+c ctrl+u
.
@brandon.ringe: You should maybe add that command to your getting-started guide. I think people following Clojure tutorials will often get to know about how they can use doc
, and source
, etcetera to find out about things.
@pez Since lein repl
requires/uses the clojure.repl namespace at startup by default, do you think Calva should do the same?
And maybe it only refers source
and doc
, I'm not sure, would have to look. Just wondering if the Calva repl should mimic to reduce confusion.