This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-06
Channels
- # aleph (15)
- # beginners (40)
- # boot (14)
- # cider (90)
- # cljs-dev (132)
- # cljsrn (25)
- # clojars (7)
- # clojure (188)
- # clojure-chicago (4)
- # clojure-dusseldorf (1)
- # clojure-greece (9)
- # clojure-italy (43)
- # clojure-russia (16)
- # clojure-sg (7)
- # clojure-spec (39)
- # clojure-uk (81)
- # clojurescript (170)
- # component (5)
- # core-async (7)
- # cursive (49)
- # data-science (65)
- # datascript (3)
- # datomic (27)
- # graphql (3)
- # hoplon (4)
- # instaparse (56)
- # klipse (129)
- # leiningen (1)
- # lumo (28)
- # off-topic (4)
- # om (15)
- # onyx (54)
- # overtone (7)
- # pedestal (7)
- # re-frame (9)
- # reagent (72)
- # ring (33)
- # ring-swagger (2)
- # spacemacs (1)
- # untangled (19)
- # vim (2)
- # yada (12)
@rmuslimov - well, when I try evaluating the same code, I get
WARNING: test already refers to: #'clojure.core/test in namespace: foo, being replaced by: #'foo/test
on a hunch, I wondered if the issue had to be with the aliasing of the underlying function. So I renamed your test to xtest like so
(def xtest (wrap-nothing target))
and now calling (xtest 3)
gets the debugger too.
@gonewest818 Which is your version of cider-nrepl/refactor-nrepl/cider ?
Mine are latest
[refactor-nrepl "2.3.1"]
[cider/cider-nrepl "0.15.0-SNAPSHOT"]
and latest cider from MELPAHi, I’m very new to Emacs/Cider, I’m coming from Cursive. I’m struggling a little bit, but I’m enjoying the adventure 🙂
I just would like to ask, if clj-refactor support *.cljs
. I’m trying to rename a symbol and I’m getting
Only .clj is supported
I’m using Spacemacs
@pedrorgirardi some ops do not work in some files
@dominicm thanks!! what is a “good way” to rename a symbol in a *.cljs file then?
if its locally bound, it's easy to jump to closing parens. what i normally do is go to the beginning of the defun or form that encloses the var, set the mark C-space
and then press C-m-f
to go the the closing brace. It should now be highlighted. M-x narrow-to-region
and then just M-x replace-regexp
this is obviously not scope aware but that's why we narrow so as to hopefully limit to the score.
@pedrorgirardi unfortunately those features needing an AST are not yet supported in cljs. this might change eventually, see reasons and discussion on how to tackle this here: https://github.com/clojure-emacs/refactor-nrepl/issues/195
we have support for quite a few things for cljs too: see refactoring functions in clojure-mode https://github.com/clojure-emacs/clojure-mode#refactoring-support
thanks very much guys!!! it’s the first time that I ask something here and you were super helpful!
@benedek I will check the issue you mentioned and the docs about the other functions
coolio, good luck @pedrorgirardi and let us know how you get on
thanks @benedek !!
@rmuslimov 0.14.0 https://github.com/gonewest818/.emacs.d https://github.com/gonewest818/.lein
What should a team do if their dev workflow requires cider-connect
and members are using different versions of cider?
you either have ur own repl process so you can control the versions of middlewares you use
@benedek So in most complex apps the entrypoint to the development system is not just lein repl
or boot repl
but a custom function or alias
Is there a reason that cider-connect can't resolve dependencies from lein/boot profiles?
So couldn't that particular dependency version be kept in sync via the emacs customization UI?
Ah but there's no way to inject it into the server process if Cider doesn't start it
So @benedek actually the ~/.boot/profile.boot
mechanism mentioned here does work for me with cider-connect
Oops, forgot URL: https://github.com/boot-clj/boot/wiki/Cider-REPL
Hmm, I spoke too soon. Boot's profile.boot
gets evaluated but still it seems like cider doesn't recognize the loaded cider-nrepl middleware when I M-x cider-connect
cider-jack-in
starts a jvm, cider-connect
connects to an existing one. If you connect to an existing one it did not start with a profile in your dir locals file
So the profile.boot is getting read in fact, and when I comment out certain deps, I am getting the expected loading of middleware
a lib was bringing in a transitive dependency on an old version of cider/cider-nrepl
Also because the version was so old that cider-nrepl's error message says "version (nil)"