This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-24
Channels
- # beginners (61)
- # boot (1)
- # cider (55)
- # cljs-dev (17)
- # cljsrn (1)
- # clojure (31)
- # clojure-india (5)
- # clojure-spec (9)
- # clojure-uk (42)
- # cursive (3)
- # datomic (29)
- # editors (3)
- # fulcro (23)
- # hoplon (2)
- # lumo (12)
- # off-topic (8)
- # pedestal (6)
- # re-frame (3)
- # reagent (8)
- # reitit (23)
- # shadow-cljs (82)
- # specter (14)
- # tools-deps (8)
With the latest snapshot, I'm seeing errors such as void-variable cider-ancillary-buffers
apparently coming from cider-connection
. The definition has moved with the latest commit (to cider-common.el
). Could it be that there's a reference to the old location dangling? Anybody else can see that error?
@bozhidar Are your recent commits related to require: Symbol’s value as variable is void: cider-ancillary-buffers
-like issue?
Seems MELPA just built from a bad commit. I fixed this only minutes after I broke it.
@bozhidar I'm getting an error with a current master, had to revert to 5a75a3e234f1aefb6696260d5a67ec5014b2c8e5
So I have cider/cider-nrepl "0.18.0-SNAPSHOT
on my .lein/profiles.clj, but when doing cider-connect-cljs
on emacs I’m getting:
'cider-connect-clojurescript' requires the nREPL op "classpath". Please, install (or update) cider-nrepl 0.18.0-SNAPSHOT and restart CIDER
@pablore that command does not inject any deps so you need to have it already on your classpath - deps.edn or project.clj
The jack in command does it for you
Yeah so cider
should have shadow repl, but you need to jack-in-cljs
On mobile now cannot recall the exact command
cider-jack-in-cljs
gives
error in process sentinel: Could not start nREPL server: npx: installed 225 in 13.772s
command not found: server
Uhm, how is shadow installed, it seems cider
assumes local install
Gotta go now sorry, will check in later
@dottedmag Just fixed it again. This time should be for real.
I’m still puzzled what was causing the problem, but I’m certain it no longer exists on master
.
(defcustom cider-shadow-cljs-parameters
"server"
"Params passed to shadow-cljs to start an nREPL server via `cider-jack-in'."
:type 'string
:group 'cider
:safe #'stringp
:package-version '(cider . "0.17.0"))
and I tried running it outiside of emacs and then using cider-connect-cljs
but got this error: https://clojurians.slack.com/archives/C0617A8PQ/p1529864339000076
what about something like (shell-command cmd "cd [location] && npx shadow-cljs server")
>
'cider-connect-clojurescript' requires the nREPL op "classpath". Please, install (or update) cider-nrepl 0.18.0-SNAPSHOT and restart CIDER
I’m pretty puzzled by this. I guess you haven’t setup the middleware in your project, but even without it you should be able to connect. I don’t think cider-connect-cljs
requires cider-classpath
during it’s init. Unless that’s coming from the cljs deps checking.
connecting with cljs now checks for piggieback and clojurescript on the classpath. which will fail if they don't have cider-nrepl on the classpath which can handle the classpath op
yeah cider-nrepl is what provides to understand what the classpath operation is. so can no longer connect to cljs repls with CIDER it would seem (without cider-nrepl)
(defun cider-library-present-p (lib)
"Check whether LIB is present on the classpath.
The library is a string of the format \"group-id/artifact-id\"."
(let* ((lib (split-string lib "/"))
(group-id (car lib))
(artifact-id (cadr lib)))
(seq-find (lambda (lib)
(let ((g (car lib))
(a (cadr lib)))
(and (equal group-id g) (equal artifact-id a))))
(cider-classpath-libs))))