This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-24
Channels
- # adventofcode (18)
- # announcements (7)
- # babashka (8)
- # beginners (81)
- # calva (7)
- # cider (40)
- # circleci (12)
- # clojure (16)
- # clojure-dev (13)
- # clojure-europe (19)
- # clojure-nl (2)
- # clojure-uk (11)
- # conjure (3)
- # cursive (5)
- # depstar (21)
- # emacs (6)
- # fulcro (38)
- # graphql (1)
- # keechma (1)
- # luminus (1)
- # portal (4)
- # re-frame (2)
- # reveal (11)
- # shadow-cljs (1)
- # sql (4)
- # tools-deps (24)
- # xtdb (4)
hello. getting (re)started with cider, figwheel, cljs after many months away. the cljs repl starts, and cider-load-file
works, but C-x C-e
throws the following error: apply: Wrong number of arguments: #[(&optional arg1 arg2 arg3) "ÀÁ\"" [clojure-quick-repls-set-connection nil] 3], 4 [2 times]
. Help?
When I place the cursor at the end of (println "This text is printed from src/obazl/core.cljs. Go ahead and edit it and see reloading in action.")
and execute cider-eval-last-sexp
the message prints in the minibuf.
Same thing with cider-eval-region
. Hmm. cider-load-file
does not throw an error, but it also does not print anything to the repl buffer. Oops, just noticed cider[not connected]
in the minibuf. Is that normal? If I run cider-jack-in-cljs
from a cljs file should it not connect?
standby; just found something on the web recommending a reinstall of cider with emacs restart…
Cider needs a js runtime. If it’s a web app have you opened the correct url in your browser?
I’m using node. I just redid my emacs init.el and restarted. Now cider-load-file
works; the println commands print to the cljs repl buffer. But the cider-eval-…
commands throw the same error.
Here’s the startup cmd: [nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.8.0"} cider/piggieback {:mvn/version "0.5.1"} cider/cider-nrepl {:mvn/version "0.25.3"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware", "cider.piggieback/wrap-cljs-repl"]'
In init.el I have (setq cider-default-cljs-repl 'node)
` . deps.edn: `{:deps {org.clojure/clojure {:mvn/version “1.10.1”}
org.clojure/clojurescript {:mvn/version “1.10.773"}
com.bhauman/figwheel-main {:mvn/version “0.2.12”}
com.bhauman/rebel-readline-cljs {:mvn/version “0.1.4"}
}
:paths [“src” “target” “test”]
}`
What do you mean? Doesn’t cider-jack-in-cljs
do that? It must, since loading the file works.
FYI I’m going from this: https://docs.cider.mx/cider/cljs/figwheel.html
I was using cljs repl type ‘node’. tried it with ‘figwheel-main’ and got the same error.
I’ve done that, builds work. I’m trying to use emacs+cider to develop with a repl, not run compiled files.
A plain node repl throws the same error, alas, so I guess it isn’t a figwheel problem.
Figwheel should emit repl related code that allows for all of the hot loading and redefinition
I don’t think the repl is the problem. It is running, I can evaluate code in it. The problem is cider.
I.e. when cider startup prompts for a clojurescript repl, ‘node’ instead of ‘figwheel-main’, with figwheel deps removed from deps.edn.
probably a version problem I suppose. that’s what often turns out to be the problem.
FYI submitted an issue https://github.com/clojure-emacs/cider/issues/2954