Fork me on GitHub
#cursive
<
2020-07-11
>
dvingo17:07:19

If I alter-meta! on a var to change it's docstring will cursive pick this change when showing the documentation help? - same question for clojurescript - it looks like it's not working in cljs

dpsutton17:07:25

i see in clojure.core there are

(alter-meta! #'*agent* assoc :added "1.0")
(alter-meta! #'in-ns assoc :added "1.0")
(alter-meta! #'load-file assoc :added "1.0")
none of these seem to have documentation in cursive

dvingo17:07:11

gotcha - thanks!

dpsutton17:07:07

(alter-meta! (find-ns 'clojure.core) assoc :doc "Fundamental library of the Clojure language") in clj, (doc clojure.core) returns that. in cursive, control-j on clojure.core says "The core Clojure language"

dpsutton17:07:45

which comes from the def form

(ns ^{:doc "The core Clojure language."
       :author "Rich Hickey"}
  clojure.core)
interesting that is overridden with such similar language. and not done in-line

dvingo18:07:36

ha, that's interesting

cfleming23:07:50

Cursive won’t pick this up when getting doc in the editor (which comes via static analysis) but in the REPL it will.