This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-08
Channels
- # bangalore-clj (5)
- # beginners (6)
- # boot (66)
- # cider (48)
- # cljsrn (14)
- # clojure (699)
- # clojure-austin (2)
- # clojure-berlin (1)
- # clojure-boston (5)
- # clojure-dev (3)
- # clojure-india (7)
- # clojure-italy (24)
- # clojure-nl (5)
- # clojure-russia (33)
- # clojure-spec (30)
- # clojure-uk (64)
- # clojure-ukraine (22)
- # clojurescript (123)
- # clojurewest (1)
- # cursive (18)
- # datascript (44)
- # datomic (12)
- # dirac (46)
- # figwheel (1)
- # gsoc (5)
- # hoplon (6)
- # immutant (29)
- # instaparse (1)
- # juxt (26)
- # lein-figwheel (5)
- # leiningen (4)
- # luminus (8)
- # mount (56)
- # off-topic (60)
- # om (67)
- # om-next (1)
- # onyx (8)
- # proton (28)
- # re-frame (125)
- # ring (3)
- # ring-swagger (3)
- # specter (22)
- # testing (2)
- # unrepl (1)
- # untangled (91)
Should have mentioned, this is the task I am running to M-x cider-connect
to my repl, which I then call (start-repl)
from:
(task-options!
cljs {:compiler-options {:language-in :ecmascript5-strict}}
test-cljs {:js-env :slimer}
reload {:port 7800}
repl {:port 6800, :bind "0.0.0.0"})
(deftask development
"Launch Immediate Feedback Development Environment"
[]
(comp
(serve)
(watch)
(reload)
(cljs-repl) ;; order is important!
(cljs)
(target)))
Hi there
Cider really rocks!!!
Is there a way to reload cider
after updating project.clj
?
not sure what you mean exactly but if you use clj-refactor you can load a new dependency into an existing repl
does cider (or clj-refactor) have a command to refactor fully qualified symbols to a require entry in the ns + an aliased symbol?
So for example, foo.bar.baz/quux
would be replaced with baz/quux
and [foo.bar.baz :as baz]
would added to the :require
of the ns
so what you could try is to add a require with an alias. you can do this with clj-refactor’s add require
It doesn't afaik. If you've aliases foo.bar.baz to baz elsewhere, if you type "baz/quux" the magic requires will require foo.bar.baz :as baz for you
yeah but won’t change all the occurrences of fully quialified usage in the code.. tbh worth a feature request or even a PR 😉
uh, not quite. cljr-refactor.nvim, fireplace.vim, async-clj-omni, etc. do all the ops for me.
@benedek Some of it requires your editor I think? because you have to take the results of those operations (find me all uses of foo.bar/baz) and then (for the case of global-rename-symbol) the editor changes it to foo.bar/baz2.
yes you are right. but in theory you could have a client implemented in clojure used from the repl
there is suçh a client for testing purposes in cljr itself. not given much love lately...
i mean a client implemented in clojure which does the necessary file operations etc...
https://github.com/clojure-emacs/refactor-nrepl/blob/master/test/refactor_nrepl/client.clj
I have recently discovered that emacs natively parses JSON, I have always associated the need for a Java nrepl with a need of a Java encoder/decoder for communication
Don't know why
That's what I am saying, I thought that nrepl was necessary because the protocol dictated it
Wrong assumption
oh ok, that's what I remembered
there's also another transmission format that i'm not thinking of off hand right now
i remember bbatsov hesitant to do that because of how old and "alpha" the emacs edn side was
in theory we could use transit over json no elisp does not support it 😄
lol I was about to correct