cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Jim Newton 2020-08-09T10:31:05.033800Z

what is  `*nrepl-messages*`  , is it an emacs buffer or a clojure dynamic variable?

Jim Newton 2020-08-09T10:32:52.034300Z

I don't find such a clojure variable, nor emacs buffer nor emacs-lisp variable.

Jim Newton 2020-08-09T10:35:13.035700Z

Ahh, I think I see the problem. it is defined like this. So the arglist is [_value type-designator] but cider can't figure that out. perhaps cider is not smart enough to get the arglist of the function pass as 3rd argument to defmulti ?

(defmulti typep 
  "Like instance? except that the arguments are reversed, and the
  given type designator need not be a class.  The given type 
  designator may be a (1) class, (2) a symbol resolving to a class, or
  (3) a CL style type designator such as
  (not A)
  (and A B)
  (or A B)
  (satisfies A B)
  (= obj)
  (member a b c)"
  (fn [_value type-designator]
    (if (sequential? type-designator)
      (first type-designator)
      type-designator)))

bozhidar 2020-08-11T10:03:03.044400Z

Yeah, probably that's the case. I think it labels a function something that has args metadata. I'll have to check the exact code.

bozhidar 2020-08-11T10:25:08.048500Z

Found the problem - this check is super basic https://github.com/clojure-emacs/orchard/blob/master/src/orchard/eldoc.clj#L37

1👍