I'm trying to implenent nREPL for #squint.
In a .cljs file I'm getting:
cider-get-ns-name: Wrong number of arguments: ((clojure-mode-abbrev-table font-lock-end font-lock-beg calculate-lisp-indent-last-sexp t) nil "Return the namespace of the current Clojure buffer.
Return the namespace closest to point and above it. If there are
no namespaces above point, return the first one in the buffer.
The results will be cached if `clojure-cache-ns' is set to t." (if (and clojure-cache-ns clojure-cached-ns) clojure-cached-ns (let ((ns (save-excursion (save-restriction (widen) (condition-case nil (progn (while t ...)) (error nil)) (or (clojure--find-ns-in-direction 'backward) (clojure--find-ns-in-direction 'forward)))))) (setq clojure-cached-ns ns) ns))), 1
when I'm trying to evaluate somethingSorry for the slow response - I've been away from a computer for the past few days. What you've experienced was a case of your .elc files being out of sync with the latest version of the .el.
Happens from time to time, and yeah - reinstalling is one way to fix this.
thanks
The buffer looks like this:
(ns scratch)
(->
(.filter #js [0 1 2] (fn [element _]
(if (zero? element)
(zero? element)
element)))
prn)
cc @bozhidar
I connected using cider-connectI am able to type stuff directly into the repl
wasn't there some kind of agnostic nREPL thing now that should work for every possible nREPL implementation? cc @benjamin.schwerdtner
Wrong number of arguments:
is commonly fixed by upgrading clojure-modeHow can I try this in Calva, @borkdude?
@pez currently I'm working in a branch squint-wip of the squint project. you can compile it using bb dev and then run ./node_cli nrepl-server :port 1888
@vemv deleting clojure-mode + clj-refactor from my elpa dir made it work!
heheheheh
nrepl-wip, right?
yes