This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-05
Channels
- # adventofcode (419)
- # aleph (8)
- # aws (6)
- # beginners (148)
- # boot (9)
- # cider (24)
- # cljs-dev (37)
- # cljsjs (8)
- # clojure (134)
- # clojure-android (6)
- # clojure-brasil (15)
- # clojure-dev (8)
- # clojure-dusseldorf (2)
- # clojure-greece (67)
- # clojure-italy (8)
- # clojure-japan (3)
- # clojure-russia (3)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojurescript (54)
- # clojurex (6)
- # cursive (5)
- # data-science (12)
- # datomic (15)
- # defnpodcast (11)
- # emacs (25)
- # fulcro (95)
- # graphql (3)
- # lein-figwheel (1)
- # leiningen (27)
- # luminus (1)
- # lumo (6)
- # mount (2)
- # off-topic (112)
- # om (3)
- # onyx (24)
- # perun (3)
- # re-frame (20)
- # reagent (1)
- # reitit (2)
- # ring-swagger (13)
- # rum (10)
- # shadow-cljs (45)
- # spacemacs (24)
- # sql (2)
- # unrepl (78)
- # yada (1)
[nREPL] Establishing direct connection to localhost:57718 ...
nrepl--direct-connect: [nREPL] Direct connection to localhost:57718 failed
Rebooted my system, threw away elpa, upgraded to cider-0.16.0-SNAPSHOT and it works again
can you guys remind me what should be the value of cider-lein-parameters
for jack-in-clojurescript if the lein task is dev
? I tried setting it to "dev" but I think it didn't work
(defun my-jack-in-jib ()
(interactive)
(let ((cider-lein-global-options "with-profile dev"))
(cider-jack-in-clojurescript)))
@dpsutton this still doesn't work for me. It does create 2 repls, and in cljs one - I can see it's compiling cljs, but it doesn't automatically start the server
(setq cider-cljs-lein-repl
"(do (require 'figwheel-sidecar.repl-api)
(require 'integrant.repl)
(integrant.repl/go)
(figwheel-sidecar.repl-api/start-figwheel!)
(figwheel-sidecar.repl-api/cljs-repl))")
Is there a happy medium between cider-eval-defun-to-comment
and cider-eval-print-last-sexp
?
I've got this:
(defun cider-eval-last-sexp-to-comment ()
"Evaluate the expression preceding point.
Print its value into the current buffer."
(interactive)
(let* ((bounds (cider-last-sexp 'bounds))
(insertion-point (nth 1 bounds)))
(cider-interactive-eval nil
(cider-eval-print-with-comment-handler
(current-buffer) insertion-point ";; => ")
(cider-last-sexp 'bounds))))
(defun my/cider-last-sexp (&optional bounds)
"Return the sexp preceding the point.
If BOUNDS is non-nil, return a list of its starting and ending position
instead."
(apply (if bounds #'list #'buffer-substring-no-properties)
(save-excursion
(clojure-backward-logical-sexp 1)
(list (point)
(progn (clojure-forward-logical-sexp 1)
(point))))))
(defun my/cider-eval-last-sexp-to-comment ()
"Evaluate the expression preceding point.
Print its value into the current buffer."
(interactive)
(let* ((bounds (my/cider-last-sexp 'bounds))
(insertion-point (nth 1 bounds)))
(cider-interactive-eval nil
(cider-eval-print-with-comment-handler
(current-buffer) insertion-point ";; => ")
(cider-last-sexp 'bounds))))
Thanks. I came up with a similar workaround by decrementing point. Yours is cleaner. Any idea why that change was made? The commit message lacks detail as to the motivation. https://github.com/clojure-emacs/cider/commit/f57abc71dbb2baf07687ac9c73025f31ee1a7c3e