Skip to content

info returns the wrong docstring for cljs spec/def #182

@vemv

Description

@vemv

spec/def is a macro.

For this cljs request, the docstring for the special form def is returned instead of spec/def's.

(-->
  id         "51"
  op         "eldoc"
  session    "acfd603d-57fc-41a6-bb79-38c192d18fa2"
  time-stamp "2023-08-29 13:41:49.282307000"
  ns         #("icd.scroll.letters" 0 18 (fontified t cider-locals nil cider-block-dynamic-font-lock t face font-lock-type-face))
  sym        "spec/def"
)
(<--
  id         "51"
  session    "acfd603d-57fc-41a6-bb79-38c192d18fa2"
  time-stamp "2023-08-29 13:41:49.284298000"
  docstring  "Creates and interns a global var with the name
  of symbol in the current namespace (*ns*) or locates such a var if
  it already exists.  If init is supplied, it is evaluated, and the
  root binding of the var is set to the resulting value.  If init is
  not supplied, the root binding of the var is unaffected."
  eldoc      (("def" "symbol" "doc-string?" "init?"))
  name       "def"
  ns         "cljs.core"
  status     ("done")
  type       "special-form"
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions