Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vemv opened this issue Aug 29, 2023 · 0 comments · Fixed by #184
Closed

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

vemv opened this issue Aug 29, 2023 · 0 comments · Fixed by #184

Comments

@vemv
Copy link
Member

vemv commented Aug 29, 2023

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"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant