This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-03
Channels
- # arachne (31)
- # aws (9)
- # bangalore-clj (7)
- # beginners (46)
- # boot (18)
- # cider (21)
- # cljs-dev (8)
- # clojure (154)
- # clojure-dusseldorf (5)
- # clojure-filipino (3)
- # clojure-ireland (4)
- # clojure-italy (9)
- # clojure-russia (6)
- # clojure-spec (6)
- # clojure-uk (52)
- # clojureremote (3)
- # clojurescript (173)
- # clojurewest (14)
- # cursive (24)
- # data-science (2)
- # datomic (18)
- # defnpodcast (1)
- # devcards (1)
- # hoplon (4)
- # instaparse (29)
- # jobs (2)
- # juxt (1)
- # leiningen (3)
- # lumo (78)
- # off-topic (46)
- # om (9)
- # onyx (42)
- # pedestal (33)
- # perun (3)
- # re-frame (9)
- # reagent (6)
- # slack-help (5)
- # spacemacs (2)
- # specter (6)
- # unrepl (157)
- # untangled (99)
- # yada (32)
@cpmcdaniel @dpsutton bit late to the party but clj-refactor maintainer and the guy who implemented the injecting in cider here š
so injecting is implemented in cider but in a way that āpluginsā can hook in to it as well and that is what clj-refactor does
re. what nrepl-refactor does: it generates ASTs for your namespaces and supports those features with the AST that need such a thing
have a look on the wiki https://github.com/clojure-emacs/clj-refactor.el/wiki these features needing the middleware are marked with *
hope that is a bit a clarification although things are a bit of a mess atm as some of the refactor features got migrated over directly to clojure mode. for these you donāt need a middleware. see details here: https://github.com/clojure-emacs/clojure-mode#refactoring-support
always cool to talk to the maintainer. Thanks for your contributions!
I'm not getting what seems like the right result using C-c C-v v for cider-eval-sexp-at-point for example, with my point on the 4 in (* 10 (+ 7 (- 4 6))) I get 4, not the expected -2 am I not understanding how this should work?
ah, ok...
is there any way to have cider eval the code within the nearest enclosing parens when the point is on anything within those parens, not at the end of it?
relatedly, I'm getting 'Wrong type argument: integer-or-marker-p, nil' when putting the point on the closing paren of (- 4 6) or on the position after it and invoking cider-eval-sexp-at-point; what am I doing wrong?
C-c C-e works for (- 4 6) if I put the point on the position after that closing paren.
this looks like what I'm after more or less (currently seeing if it's in my version of cider): https://github.com/clojure-emacs/cider/commit/26bb28226136145e41e2eed65d33ed2772b4c5a3?diff=split#diff-e39c33031dc8d3e78b32ebee83293cd6
however, the title of that 'Add a command to evaluate the form around point', doesn't seem to be what the function does 'cider-eval-current-sexp' which you pointed out above is just to evaluate the 4 itself as a sexp.
ah, ok, the following discussion reveals it was not what was intended: https://github.com/clojure-emacs/cider/commit/2207619121c8d8616cd262774ec276dca04c449a#comments