This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-13
Channels
- # atlanta-clojurians (1)
- # beginners (148)
- # boot (13)
- # capetown (1)
- # cider (38)
- # cljs-dev (92)
- # clojure (61)
- # clojure-brasil (1)
- # clojure-dev (6)
- # clojure-italy (21)
- # clojure-losangeles (1)
- # clojure-nl (7)
- # clojure-norway (20)
- # clojure-spec (70)
- # clojure-uk (64)
- # clojurescript (69)
- # core-async (11)
- # cursive (6)
- # data-science (2)
- # datomic (50)
- # docker (2)
- # duct (12)
- # figwheel (1)
- # fulcro (81)
- # graphql (19)
- # jobs (3)
- # jobs-discuss (44)
- # keechma (1)
- # leiningen (1)
- # mount (2)
- # off-topic (10)
- # onyx (19)
- # parinfer (3)
- # portkey (6)
- # re-frame (4)
- # reagent (145)
- # reitit (1)
- # ring (1)
- # ring-swagger (2)
- # specter (1)
- # sql (4)
- # tools-deps (43)
- # unrepl (29)
- # vim (1)
@dottedmag The problem is that clj-refactor
doesn’t support injecting deps for deps.edn
projects. For the time being you should add those manually to your project.
It to work around some dependency resolution bug, that we couldn’t track down. It will be removed eventually.
> Ah-ha, there’s open bug about it: https://github.com/clojure-emacs/cider/issues/2226
Yeah, fixing this would help as you’d be able to inject refactor-nrepl
via the cider config. Fixing it is super simple, unfortunately I have 0 time to oss until the end of the month (and likely much of next month).
> is this like a maintainence or consolidation plan? Just seeing bits and pieces (orchard)
Some consolidation would be a nice outcome, but that’s going to take some time. I’d love to polish a bit nREPL and piggieback for some short-term gains, and afterwards focus on ways to support alternative REPLs. I still believe that nREPL is fundamentally very sound in its design and relatively easy to use, it’s the just that it hasn’t evolved much in recent years. Theoretically if we (the CIDER/clojure-emacs team) have access to both projects we can even merge the cljs support in nREPL itself.
@bozhidar for issue #2226, would it be enough to set cider-clojure-parameters
to something like (format "[%s]" (mapconcat 'identity cider-jack-in-nrepl-middlewares " "))
? (my elisp-fu is not that great, probably there's a better solution...)
Yeah, basically you need to interpolate the user-supplied middleware where you’re forming the execution string.
ok, I can open a PR with that code if you want. But again, if there is a better way to "list-of-strings->vector-of-strings" in elisp, I'm all ears. 🙂
@bozhidar I don't have to add an explicit orchard dependency fwiw, I think that's fixed.
@bozhidar interesting, so it could be something like: (format "[%s]" (string-join cider-jack-in-nrepl-middlewares " "))
cool. Now I'll check what lein/boot do as @dominicm suggested, because I have to understand what needs to be done beside setting cider-clojure-parameters
with the values from cider-jack-in-nrepl-middlewares
I experienced strange behaviour with cider repl. Everytime I switch from one window to another the text in cider-buffer is doubled. For instance I am in 'some-namespace in cider and i call (print "hello"), then i switch to another window, then i switch back to cider and the (print "hello") is twice. I'm using spacemacs. Maybe that is the problem?
https://giphy.com/gifs/X8JF885SIp2eC9EEnv?status=200 here is an example
Ok it seems that it's the problem not connected with cider
Looks like the problem I had in inf-clojure
I got that problem even in normal ansi-term
Yep comint
is the culprit
Might be worth trying
No @bozhidar I think he said that it is not related
Yes I thought that is related but it's not
Might be something different from comint
as well, I don't know what ansi-term
is using actually
The same is both for the term, cider and all repls. I don;t know what's causing it. I will ask spacemacs community. Thanks for help.
The problem was with the zsh
After switching to bash in emacs everything runs smooth and very nice. The problem is gone.