Fork me on GitHub

saving a buffer with a figwheel connection open some times hangs for a while


seems it's because of indentation stuff


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?


after you cider-connect, try running cider-create-sibling-cljs-repl


although it looks like that creates a new process and everything


as far as I can see, you'll need to just run those manually


@dpsutton, yes, sadly, I can’t make them play together in elisp.


       `("op" "eval"
         "ns" ,(cider-current-ns)
         "code" ,cljs-repl-form)
       (cider-repl-handler (current-buffer)))


i think this is exactly what code is eval'd to do it


so if you want to make your own "i'm connected, start up my repl" function


and here, just replace the ,cljs-repl-form with whatever invocation you need


@dpsutton, can’t make this work, but thanks anyway


what error are you getting?


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 ()
  (cider-connect "" 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")


not the prettiest code, but seems to work


It ain't pretty but that's kinda Emacs. It'll get the job done :)