This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-07
Channels
- # announcements (11)
- # architecture (2)
- # babashka (84)
- # beginners (226)
- # calva (7)
- # chlorine-clover (4)
- # cider (29)
- # clara (17)
- # clj-kondo (23)
- # cljs-dev (58)
- # cljsrn (60)
- # clojure (172)
- # clojure-europe (24)
- # clojure-finland (2)
- # clojure-italy (6)
- # clojure-nl (8)
- # clojure-spec (4)
- # clojure-uk (22)
- # clojurescript (44)
- # conjure (39)
- # core-async (64)
- # cursive (76)
- # data-science (15)
- # duct (3)
- # emacs (2)
- # events (5)
- # fulcro (30)
- # helix (4)
- # jackdaw (5)
- # juxt (1)
- # kaocha (1)
- # leiningen (4)
- # off-topic (9)
- # pathom (22)
- # re-frame (9)
- # reagent (33)
- # reitit (3)
- # ring (10)
- # ring-swagger (2)
- # shadow-cljs (192)
- # spacemacs (27)
- # specter (2)
- # sql (59)
- # vim (2)
i see two candidates for cider-nrepl. which is supposed to be used right now?
0.25.0-SNAPSHOT
0.25.0-alpha1
Both will work - in CIDER the required version is alpha1
, but I updated the snapshot as well, because I noticed many people using cider-connect
still believe they have to use the same cider-nrepl
version as CIDER’s version.
i'm getting lots of errors from the middleware and just want to make sure i'm using the most recent. also is nrepl 0.7 a hard dependency or optional?
What kind of errors? nREPL 0.7 is not a hard dependency - I bumped it mostly to verify it’s working well for everyone.
M-x cider-clojuredocs in terminal emacs is throwing
Wrong type argument: char-or-string-p, nil
with the following debug statement
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
cider-clojuredocs--content(nil)
cider-clojuredocs-lookup("get")
cider-read-symbol-name("ClojureDocs doc for" cider-clojuredocs-lookup)
cider-clojuredocs(nil)
funcall-interactively(cider-clojuredocs nil)
#<subr call-interactively>(cider-clojuredocs record nil)
apply(#<subr call-interactively> cider-clojuredocs (record nil))
call-interactively@ido-cr+-record-current-command(#<subr call-interactively> cider-clojuredocs record nil)
apply(call-interactively@ido-cr+-record-current-command #<subr call-interactively> (cider-clojuredocs record nil))
call-interactively(cider-clojuredocs record nil)
command-execute(cider-clojuredocs record)
execute-extended-command(nil "cider-clojuredocs")
(with-no-warnings (execute-extended-command current-prefix-arg chosen-item-name))
(unwind-protect (with-no-warnings (execute-extended-command current-prefix-arg chosen-item-name)) (smex-rank chosen-item))
(if smex-custom-action (let ((action smex-custom-action)) (setq smex-custom-action nil) (funcall action chosen-item)) (unwind-protect (with-no-warni$
(let* ((chosen-item-name (smex-completing-read commands initial-input)) (chosen-item (intern chosen-item-name))) (if smex-custom-action (let ((actio$
smex-read-and-run(("list-buffers" "cider-clojuredocs" "cider-scratch" "toggle-debug-on-error" "cider-connect" "linum-mode" "cider-version" "indent-r$
(if (smex-already-running) (smex-update-and-rerun) (and smex-auto-update (smex-detect-new-commands) (smex-update)) (smex-read-and-run smex-ido-cache$
smex()
funcall-interactively(smex)
#<subr call-interactively>(smex nil nil)
apply(#<subr call-interactively> smex (nil nil))
call-interactively@ido-cr+-record-current-command(#<subr call-interactively> smex nil nil)
apply(call-interactively@ido-cr+-record-current-command #<subr call-interactively> (smex nil nil))
call-interactively(smex nil nil)
command-execute(smex)
any thoughts on how to figure this out?I've been staring at https://github.com/clojure-emacs/cider/blob/master/cider-clojuredocs.el but it's a bit hard for me to figure out.
since I'm in emacs -nw terminal, I wonder if pop-to-buffer in cider-clojuredocs--content, the last call in the stack.
the problem seems to be in
(let ((docs (cider-sync-request:clojuredocs-lookup (cider-current-ns) sym)))
and that is pretty hard for me to figure out.Is your cider-nrepl version in sync? Try evaluating (cider-nrepl-op-supported-p "clojuredocs-lookup")
My guess would be that something’s wrong with the local copy of the clojuredocs database or something along those lines. Still, it seems we should have also added a nil
check for missing content.
wondering where/how should I evaluate
(cider-nrepl-op-supported-p "clojuredocs-lookup")
I was just reading the code in the github repo and that's where I studied the line of code the debugger revealed... evaluating your suggestion in cider-scratch gives me an
Unable to resolve symbol: cider-nrepl-op-supported-p in this
context
@U051BLM8F is there a way for me to troubleshoot the possibility off an issue with my local database (or maybe just reinstall or whatever)?
@UCPS050BV I also tried
(cider-nrepl-op-supported-p "clojuredocs-lookup")
in the minibuffer and it returned nil... not sure if there was an error as I don't know where to look.It might be a cider-nrepl mismatch in that case - check the first few lines of your cider-repl buffer which should state the version
> are they supposed to be the same version number... or?
Not necessarily - in CIDER there’s a variable cider-required-middleware-version
that specifies the required cider-nrepl
version.
oh... doh. I finally just understood what you meant @U051BLM8F about looking at CIDER's REPL buffer.