This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-20
Channels
- # arachne (4)
- # bangalore-clj (1)
- # beginners (38)
- # boot (182)
- # cider (21)
- # cljs-dev (9)
- # clojars (5)
- # clojure (229)
- # clojure-austin (1)
- # clojure-berlin (1)
- # clojure-czech (3)
- # clojure-dusseldorf (3)
- # clojure-ireland (5)
- # clojure-italy (4)
- # clojure-russia (33)
- # clojure-spec (73)
- # clojure-taiwan (6)
- # clojure-uk (22)
- # clojure-ukraine (1)
- # clojurescript (80)
- # core-async (26)
- # cursive (3)
- # datascript (20)
- # datomic (9)
- # defnpodcast (8)
- # editors (4)
- # emacs (7)
- # garden (41)
- # hoplon (2)
- # java (1)
- # lambdaisland (2)
- # lein-figwheel (1)
- # leiningen (5)
- # luminus (4)
- # lumo (36)
- # off-topic (4)
- # om (21)
- # onyx (1)
- # pedestal (33)
- # re-frame (33)
- # ring-swagger (70)
- # spacemacs (26)
- # specter (7)
- # sql (6)
- # timbre (2)
- # untangled (12)
- # vim (3)
- # yada (1)
https://github.com/nikki93/learning-clojurescript/blob/b8a60cecc60ee7c1251d4337541b266b4f342bb6/playground/src/playground/core.cljs is the file in question
I'm on CIDER 0.15.0snapshot (package: 20170122.2028) and I want to check if the new-ish behavior I'm seeing with fn parameter highlighting is intentional, and if so...if it could not be? For example, if I have code like (contains? (:data foo) :squuid)
and I put the cursor at the open-paren of (:data foo)
the minibuffer shows me clojure.core/contains?: ([coll key])
, with coll
bolded so I know it's the argument at point—that's great. I love it. But the new behavior when I move my cursor to anywhere on :squuid
is to show me the (useless) fn parameters for :squuid
, when what I (and I assume reasonable persons) want is to keep the contains?
parameter list, and bold key
. Or, consider another example: (update foo :data dissoc :squuid)
, where putting the cursor near dissoc
gives me dissoc
's parameter list, rather than helping me tell that dissoc
is in the correct position within update
. The behavior I'd prefer is to highlight the parameters only of functions currently in parens.
hello. I’d like to connect to cljs repl the figwheel started for me. I usually do M-x cider-connect
, then evaluate (use ‘figwheel-sidecar.repl-api)(cljs-repl)
. The problem is I don’t have clojure locally, it runs in a docker container and M-x cider-jack-in-clojurescript
tries to install everything for me. I’m ok with copy/pasting that line, but still would like to save a step. Is there a way to eval that after cider connected to nrepl?
(cider-nrepl-send-request
`("op" "eval"
"ns" ,(cider-current-ns)
"code" ,cljs-repl-form)
(cider-repl-handler (current-buffer)))
actually i've got to head to lunch and then a meeting. if you are around this evening i'll be on and we can chat more
@dpsutton, I ended up with this:
(defun tmp-cider ()
(interactive)
(cider-connect "cljstest_figwheel.dev.dnsdock" 7888 (projectile-project-root))
(with-current-buffer (cider-current-repl-buffer)
(insert "(use 'figwheel-sidecar.repl-api) (cljs-repl)")
(funcall (key-binding (kbd "RET")))
(setq cider-repl-type "cljs")
))