This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-27
Channels
- # beginners (56)
- # calva (61)
- # cider (16)
- # clara (7)
- # cljdoc (2)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (144)
- # clojure-spec (23)
- # clojure-uk (5)
- # clojurescript (9)
- # clojureverse-ops (5)
- # community-development (4)
- # cursive (18)
- # datomic (15)
- # docs (6)
- # jackdaw (2)
- # nrepl (10)
- # nyc (2)
- # off-topic (18)
- # rewrite-clj (20)
- # shadow-cljs (31)
OK. So I am doing something wrong, but can’t figure out what it is. Maybe someone in here can see some pattern that I am missing so that I can start looking at the right place for the source of error. In my little test project I could get things to work (see above), but in Calva, I still have something lurking. The symptoms are:
1. Everything seems to be dandy with CLJ repls.
1. In CLJS repls things go wrong if I try to do something as simple as (println 1)
.
1. Evaluating things in general, works.
1. Things go wrong liks this:
1. I get an ex
message back class java.lang.IllegalArgumentException
. I’ll post the stacktrace in a separate snippet.
1. I get an exception in the terminal/process I started the repl from. I’ll post that as a seperate snippet too.
The Clojure REPL is started like so for a cli/deps project:
clojure -Sdeps "{:deps {nrepl {:mvn/version \"0.6.0\"} cider/cider-nrepl {:mvn/version \"0.21.1\"} cider/piggieback {:mvn/version \"0.4.0\"} figwheel-sidecar {:mvn/version \"0.5.18\"}}}" -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware cider.piggieback/wrap-cljs-repl]"
Then it depends on project type for the cljs repl, but for figwheel:
(do (require 'figwheel-sidecar.repl-api) (if (not (figwheel-sidecar.repl-api/figwheel-running?)) (figwheel-sidecar.repl-api/start-figwheel!)) (figwheel-sidecar.repl-api/cljs-repl))